Auto-properties with or without backing field - preference?
问题 I know that when using auto-properties, the compiler creates its own backing field behind the screen. However, in many programs I read to learn from, I see people explicitly write private int _backingField; public int Property { get { return _backingField; } } What is the difference between above, and below? public int Property { get; private set; } I understand that its obvious to use the property when you actually have side-effects in the getter or setter, but that's often not the case.