Answer the question
In order to leave comments, you need to log in
How to extract a column from a 2D List to a 1D List?
There is some two-dimensional dynamic list List:
List<List<int>> twoDimentionalList = new List<List<int>>();
Answer the question
In order to leave comments, you need to log in
List<int> allIntegersFromSecondColumn = twoDimentionalList.Select(row => row[1]).ToList();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question