Refactoring Day 1 : Encapsulate Collection(lostechies.com)
submitted by
johnrummell(1321) 2 years, 9 months ago
In certain scenarios it is beneficial to not expose a full collection to consumers of a class. Some of these circumstances is when there is additional logic associated with adding/removing items from a collection. Because of this reason, it is a good idea to only expose the collection as something you can iterate over without modifying the collection.
|category: C#
|Views: 15
tags:
C# another
Everyones tags:
Your Tags: