Is it good practice to use the private field, or the property, when writing code in the class that contains them?
For example, if I have this field/property pair, cl
When using Auto-Implemented properties, you don't have a choice - you must use the property, as you don't have any access to the generated field.
If you property is not simple and does some extra work (validation, firing events etc...), you should call the property in order to centralize access and logic.
If you have any other properties (meaning a simple property with no logic and a backing field) I would ask why are they not one of the above...
With the example you have give, it makes little difference - it is more important to be consistent with how you use these and really boils down to personal aesthetics and coding style.