I was wondering how to clean up a list holding objects containing another list.
Like so :
List<Foo> FooCollection = new List<Foo>();
Foo foo1 = new Foo(new List<Bar>());
Foo foo2 = new Foo(new List<Bar>());
FooCollection.Add(foo1);
FooCollection.Add(foo2);
Is this enough ?
FooCollection = null;