I was reading up on some C# and came across this snippet of code from: http://blog.codinghorror.com/properties-vs-public-variables/
The code was:
private int _name;
public int Name
{
get { return _name; }
set { _name = value; }
}
Can you please explain what is going on in this code snippet here? Thanks!