For example, a dynamic two-dimensional array of type int: list.
Small example: for example, realize a dynamic two-dimensional array of type int.
To add rows, add a matrix. Add (new list
Matrix [n]. Add(i) is used to add data to the row; But this operation is not recommended.
List & lt list & ltint & gt& gtmatrix = new list & lt list & lt>> ();
Matrix. Add (new list & ltint & gt ());
Matrix [0]. Add (1);
Console. WriteLine(matrix[0][0]);
Console. read key();