Blame |
Last modification |
View Log
| Download
| RSS feed
using System;
namespace Race
{
public class Participant
{
#region Fields
private string firstName = string.Empty;
private string lastName = string.Empty;
private UInt16 yearOfBirth = 0;
private string email = null;
#endregion
#region Constructors
/// <summary>
/// Initializes a new instance of the <see cref="Race.Participant"/> class.
/// </summary>
/// <param name='firstName'>
/// First name.
/// </param>
/// <param name='lastName'>
/// Last name.
/// </param>
/// <param name='yearOfBirth'>
/// Year of birth.
/// </param>
public Participant (string firstName, string lastName, UInt16 yearOfBirth)
{
this.firstName = firstName;
this.lastName = lastName;
this.yearOfBirth = yearOfBirth;
}
/// <summary>
/// Initializes a new instance of the <see cref="Race.Participant"/> class.
/// </summary>
/// <param name='firstName'>
/// First name.
/// </param>
/// <param name='lastName'>
/// Last name.
/// </param>
/// <param name='yearOfBirth'>
/// Year of birth.
/// </param>
/// <param name='email'>
/// Email.
/// </param>
public Participant(string firstName, string lastName, UInt16 yearOfBirth, string email)
{
this.firstName = firstName;
this.lastName = lastName;
this.yearOfBirth = yearOfBirth;
this.email = email;
}
#endregion
#region Properties
/// <summary>
/// Gets or sets the first name.
/// </summary>
/// <value>
/// The first name.
/// </value>
public string FirstName
{
get { return this.firstName; }
set { this.firstName = value; }
}
/// <summary>
/// Gets or sets the last name.
/// </summary>
/// <value>
/// The last name.
/// </value>
public string LastName
{
get { return this.lastName; }
set { this.lastName = value; }
}
/// <summary>
/// Gets or sets the year of birth.
/// </summary>
/// <value>
/// The year of birth.
/// </value>
public UInt16 YearOfBirth
{
get { return this.yearOfBirth; }
set { this.yearOfBirth = value; }
}
/// <summary>
/// Gets or sets the email.
/// </summary>
/// <value>
/// The email.
/// </value>
public string Email
{
get { return this.email; }
set { this.email = value; }
}
#endregion
}
}