How can I expose a List so that it is readonly, but can be set privately?
List
This doesn\'t work:
public List myList
I prefer to use IEnumerable
private readonly List _list = new List(); public IEnumerable Values // Adding is not allowed - only iteration { get { return _list; } }