I think this is the best example. If you use the DataBindings properties, you often look like this:
public string Name { get { return _name; } set { _name = value; OnPropertyChanged("Name"); } }
So, if you just want to get the name in this class, it doesn't matter if you use it like this.Name or this._name .
On the other hand, if you want to install it, it really depends if you want to update the interface or not.
My personal agreement is that I use private backingfields whenever possible.
In your case, if there is no more logical logic in the getter and setter, the auto property will suffice.
source share