There are two ways to implement the getter and setter.
A:
public Object Name {get;set;}
B:
private Object _name;
public Object Name
{
get {return this._name;}
set {this._name = value;}
}
When we wanner get or set the property we all use
X.Name = "Joy";
String name = X.Name
So I just want to know the difference between them.
Thank you.