Should you reference the Property or the Member Variable inside a class? [duplicate]
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Should you access a variable within the same class via a Property? I ran into this recently and was curious if there was some sort of standard for which one you should reference while inside a class. I mean really it shouldn't make a difference whether you access the member variable directly or go through the property (unless you need to dodge some custom setter code), but I wanted to be sure there wasn't a best