Is `this` keyword optional when accessing members in C#?
问题 I notice that if you have a private member in a class, you can access it in the class methods by just referring to it's name. You do not need to say this.memberName , just memberName works. So is the this keyword optional in the context of member access? I do see it is useful when you want to clarify the scope - when you have 2 variables with the same name. Is there any other reason to use it when accessing members? 回答1: Yes, it's optional. The only times you'd have to use it are when you