private string _name;
public string Name
{
get { return _name;
}
set {
_name = value;
}
}
public string Name;
It's easier to read, uses less screen real estate and we can always change it to the former when we need.
Rants on agile software development and product design
private string _name;
public string Name
{
get { return _name;
}
set {
_name = value;
}
}
No comments:
Post a Comment