Avoid Exposing Collections Directly as Properties

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
.NET makes it easy to create strongly typed collections and expose them as properties of our classes. However, this generally results in a design that fails at encapsulation and exposes too much of the classs internal state. Learn a few simple techniques to keep from going down this path in this article.

View the full article
 
Back
Top