C# in Depth

Cover of C# in Depth
Order now (3rd edition)

Why exposing properties rather than fields is best practice

Chapter 8: Cutting fluff with a smart compiler: 8.1

Created: 3/22/2008
Last updated: 3/22/2008

In chapter 8, I asserted that you shouldn't write non-private fields - that using properties is regarded as best practice. I didn't explain why, however - but I've now written it up as an article.