using System; namespace Race { public class Participant { #region Fields private string firstName = string.Empty; private string lastName = string.Empty; private Nullable age = null; #endregion #region Constructors /// /// Initializes a new instance of the class. /// /// /// First name. /// /// /// Last name. /// public Participant(string firstName, string lastName) { this.firstName = firstName; this.lastName = lastName; } /// /// Initializes a new instance of the class. /// /// /// First name. /// /// /// Last name. /// /// /// Age. /// public Participant(string firstName, string lastName, Byte age) { this.firstName = firstName; this.lastName = lastName; this.age = age; } #endregion #region Properties /// /// Gets or sets the first name. /// /// /// The first name. /// public string FirstName { get { return this.firstName; } set { this.firstName = value; } } /// /// Gets or sets the last name. /// /// /// The last name. /// public string LastName { get { return this.lastName; } set { this.lastName = value; } } /// /// Gets or sets the age. /// /// /// The age. /// public Nullable Age { get { return this.age; } set { this.age = value; } } #endregion } }