static void Main() { IntegerCollections collections = new IntegerCollections(); List <int> integerListA = new List <int>(); integerListA.Add(1); integerListA.Add(2); integerListA.Add(3); collections.NotNestedCollection(integerListA); List <int> integerListB = new List <int>(); integerListB.Add(4); integerListB.Add(5); integerListB.Add(6); List <int> integerListC = new List <int>(); integerListC.Add(7); integerListC.Add(8); integerListC.Add(9); List <ICollection <int> > nestedIntegerLists = new List <ICollection <int> >(); nestedIntegerLists.Add(integerListA); nestedIntegerLists.Add(integerListB); nestedIntegerLists.Add(integerListC); collections.NestedCollection(nestedIntegerLists); }
static void Main() { IntegerCollections collections = new IntegerCollections(); List<int> integerListA = new List<int>(); integerListA.Add(1); integerListA.Add(2); integerListA.Add(3); collections.NotNestedCollection(integerListA); List<int> integerListB = new List<int>(); integerListB.Add(4); integerListB.Add(5); integerListB.Add(6); List<int> integerListC = new List<int>(); integerListC.Add(7); integerListC.Add(8); integerListC.Add(9); List<ICollection<int>> nestedIntegerLists = new List<ICollection<int>>(); nestedIntegerLists.Add(integerListA); nestedIntegerLists.Add(integerListB); nestedIntegerLists.Add(integerListC); collections.NestedCollection(nestedIntegerLists); }