Answers for "how to create a matrix list in c#"

C#
0

2d list c#

List<List<int>> matrix = new List<List<int>>();
List<int> list1 = new List<int>();
list1.Add("4");
list1.Add("5");
matrix.Add(list1);
List<int> list2 = new List<int>();
list2.Add("6");
list2.Add("7");
matrix.Add(list2);

//matrix is now
// 4 5
// 6 7
Posted by: Guest on April-13-2021

Code answers related to "how to create a matrix list in c#"

C# Answers by Framework

Browse Popular Code Answers by Language