Best practice for C# Auto-Implemented Property and local variable that differ only by case?
问题 Let me give you an example: public class MyClass { public string MyProperty { get; set; } public MyClass(string myProperty) { MyProperty = myProperty; // bad? this.MyProperty = myProperty; // good? } } I've taken to using this in this scenario, because I have minor paranoia that relying on case alone might be confusing or worse might actually lead to bugs. What is the "best practice" here? EDIT: So far, it sounds like this is a lot more subjective than I thought. I figured people would come