I do have
But how do I create a List for adding several 'MyList's ?Code:List<UInt64> MyList = new List<UInt64>();
Printable View
I do have
But how do I create a List for adding several 'MyList's ?Code:List<UInt64> MyList = new List<UInt64>();
Try this:
Code:public class MyList: List<UInt64>
{}
List<MyList> myLists = new List<MyList>();
Or you can avoid creating a new class and just do:
List<List<uint>> listoflists = new List<List<uin>>();
Why don't you use two-dimensional arrays? They work about the same way.
That list would have 10 rows with 10 uints in each. The down-part is that you have to specify the number of values at creation.Code:uint[,] MyList = new MyList[10, 10];
Why not? Becase array and collection are two different things.
Because i don't know the size of collection and it can (will) grow I can't use a fixed arraysize but must use a 'growable' collectionQuote:
Originally Posted by dahwan