You can write a full property
Code:
private string name;
public string Name
{
get
{
return name;
}
set
{
name=value;
}
}
Instead of an automatic property
Code:
public string Name { get; set; }
See page 233 for automatic properties:
...the compiler declares a private field that is used for storage, and uses that field in the get and set blocks of your property....