Apr
10th | 2008

How to Expose Your Collections Safely

Posted by Shahar A |
Filed under .Net, C# |

We use collections all the time. Many times we have to expose them to users of our classes. Lets look at this simple tree node class:
class TreeNode
{
private List<TreeNode> children = new List<TreeNode>();

public IList<TreeNode> Children
{
[...]


Continue Reading...

Search Dev102