Game Development Reference
In-Depth Information
[CategoryAttribute(“Contact Information”),
DescriptionAttribute(“Phone number of the employee. (###-###-####)”),
PropertyOrder(2)]
public string PhoneNumber
{
get { return phoneNumber; }
set { phoneNumber = value; }
}
[CategoryAttribute(“Contact Information”),
DescriptionAttribute(“Email of the employee. Format: *@*.*"),
PropertyOrder(3)]
public string Email
{
get { return email; }
set { email = value; }
}
[CategoryAttribute(“Biological Information”),
DescriptionAttribute(“Birth date of the employee.”),
PropertyOrder(0)]
public DateTime BirthDate
{
get { return birthDate; }
set
{
birthDate = value;
age = DateTime.Now.Year - birthDate.Year;
}
}
[CategoryAttribute(“Biological Information”),
DescriptionAttribute(“Age of the employee.”),
PropertyOrder(1)]
public int Age
{
get { return age; }
}
[CategoryAttribute(“Biological Information”),
DescriptionAttribute(“Hair color of the employee. (Optional)”),
Search Nedrilad ::




Custom Search