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 ?
See Question&Answers more detail:os