Skip to content

Instantly share code, notes, and snippets.

@RealDotNetDave
Created June 19, 2019 17:11
Show Gist options
  • Save RealDotNetDave/4cc932cfcb76a2da25257135c7492cb2 to your computer and use it in GitHub Desktop.
Save RealDotNetDave/4cc932cfcb76a2da25257135c7492cb2 to your computer and use it in GitHub Desktop.

Revisions

  1. RealDotNetDave created this gist Jun 19, 2019.
    114 changes: 114 additions & 0 deletions Person.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,114 @@
    // ***********************************************************************
    // Assembly : dotNetTips.CodePerf.Example.App
    // Author : David McCarter
    // Created : 06-04-2019
    //
    // Last Modified By : David McCarter
    // Last Modified On : 06-10-2019
    // ***********************************************************************
    // <copyright file="Person.cs" company="dotNetTips.com - McCarter Consulting">
    // 2019: David McCarter - McCarter Consulting
    // </copyright>
    // <summary></summary>
    // ***********************************************************************
    using System;

    namespace dotNetTips.CodePerf.Example.App.Models
    {
    /// <summary>
    /// Class Person.
    /// </summary>
    /// <seealso cref="System.IComparable" />
    [Serializable]
    public class Person
    {
    /// <summary>
    /// Initializes a new instance of the <see cref="Person" /> class.
    /// </summary>
    /// <param name="id">The identifier.</param>
    /// <param name="email">The email.</param>
    public Person(string id, string email)
    {
    this.Id = id;
    this.Email = email;
    }

    /// <summary>
    /// Initializes a new instance of the <see cref="Person" /> class.
    /// </summary>
    public Person()
    { }

    /// <summary>
    /// Gets or sets the address1.
    /// </summary>
    /// <value>The address1.</value>
    public string Address1 { get; set; }

    /// <summary>
    /// Gets or sets the address2.
    /// </summary>
    /// <value>The address2.</value>
    public string Address2 { get; set; }

    /// <summary>
    /// Gets or sets the born on.
    /// </summary>
    /// <value>The born on.</value>
    public DateTime BornOn { get; set; }

    /// <summary>
    /// Gets or sets the cell phone.
    /// </summary>
    /// <value>The cell phone.</value>
    public string CellPhone { get; set; }

    /// <summary>
    /// Gets or sets the city.
    /// </summary>
    /// <value>The city.</value>
    public string City { get; set; }

    /// <summary>
    /// Gets or sets the country.
    /// </summary>
    /// <value>The country.</value>
    public string Country { get; set; } = "USA";

    /// <summary>
    /// Gets the email.
    /// </summary>
    /// <value>The email.</value>
    public string Email { get; set; }

    /// <summary>
    /// Gets or sets the first name.
    /// </summary>
    /// <value>The first name.</value>
    public string FirstName { get; set; }

    /// <summary>
    /// Gets or sets the home phone.
    /// </summary>
    /// <value>The home phone.</value>
    public string HomePhone { get; set; }

    /// <summary>
    /// Gets the identifier.
    /// </summary>
    /// <value>The identifier.</value>
    public string Id { get; set; }

    /// <summary>
    /// Gets or sets the last name.
    /// </summary>
    /// <value>The last name.</value>
    public string LastName { get; set; }

    /// <summary>
    /// Gets or sets the postal code.
    /// </summary>
    /// <value>The postal code.</value>
    public string PostalCode { get; set; }
    }
    }