How can I expose a List so that it is readonly, but can be set privately?
List
This doesn\'t work:
public List myList
You could also create your normal list, but expose it through a property of type IEnumerable
private List _list = new List(); public IEnumerable publicCollection{ get { return _list; } }