could someone explain to me what is the difference between writing a property like this
public string Name{ get; set; }
and this
public string Name()
{
get
{
return _name;
}
set
{
_name = value;
}
}
if the top one is as easy to write/implement as it seems then why aren't all properties wrote in this fashion?