in my C#-project, I have a class which contains a List
public class MyClass { public MyClass parent; public List children; ... }
using System.Collections.ObjectModel; public class MyClass { private List children; public ReadOnlyCollection Children { get { return new ReadOnlyCollection(children); } } }