in my C#-project, I have a class which contains a List
public class MyClass { public MyClass parent; public List children; ... }
Use List(T).AsReadOnly().
List(T).AsReadOnly()
http://msdn.microsoft.com/en-us/library/e78dcd75.aspx
Returns a read-only IList<(Of <(T>)>) wrapper for the current collection.
Available since .NET 2.0.