I love automatic properties in C #, but recently this elephant has been standing in my office, and I do not know what to do with it.
If I use automatically implemented properties (hereinafter “aip”), then I no longer have a personal support field for internal use. This is great because aip has no side effects. But what if later I need to add extra processing to get or set?
Now I need to create a background field so that I can expand my recipients and setters. This is normal for external code using a class because they will not notice the difference. But now all internal links to aip are going to cause these side effects when they access the property. Now all internal access to the aip-window should be reorganized to use the support field.
So my question is, what do most of you do? Do you use automatically implemented properties or prefer to always use a background field? What do you think of side effects?
c # properties
mikesigs
source share