What is the difference between using Private Properties instead of Private Fields
private String MyValue { get; set; }
// instead of
private String _myValue;
public void DoSomething()
{
MyValue = "Test";
// Instead of
_myValue = "Test";
}
Is there any performance issue ? or just a naming convention ?
question from:https://stackoverflow.com/questions/411048/differences-between-private-fields-and-private-properties