+ 3
Can I use the List<T> as a multiple array in C#? or How to create dynamically growing array in C# or C++
5 Answers
+ 1
Who can reply???!
+ 1
Hello,
There are some solutions
1- you can have list<List<T>>
both lists can grow
2- create a class has 2 properties one is T(generic) and the other is int
the int property is index of your nested array
0
Do you mean Multidimensional Array?
example of multi dimensional Array : int[, ,] array1 = new int[4, 2, 3];
0
I knew multi dimensional Array.
I need growning array for example:
int[,] arr=new int[2,3];
arr[3,1]=2; // But index out of range
It works like vectors
0
Can you send me example about this in C# or C++
If you can in C# send please... Because I have not used Lists yet.