|
namespace VMCommanding.Model
{
/// <summary>
/// Stores attributes of a person.
/// </summary>
public class Person
{
public static Person[] GetPeople()
{
return new Person[]
{
new Person("Barney", 30),
new Person("Fred", 32),
new Person("Wilma", 28)
};
}
private Person(string name, int age)
{
this.Name = name;
this.Age = age;
this.IsAlive = true;
}
public int Age { get; private set; }
public bool IsAlive { get; set; }
public string Name { get; private set; }
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.