Using a private auto property instead of a simple variable for a programming standard
问题 In a discussion with a peer, it was brought up that we should consider using auto properties for all class level variables... including private ones. So in addition to a public property like so: public int MyProperty1 { get; set; } Our private class-level variables would look like this: private int MyProperty2 { get; set; } Instead of: private int _myProperty2; I'm on the fence about why someone would want to do this but I can't decide if my reluctance to accept this is because of my own