score:16
Accepted answer
You can do:
var allTrackAreasCombined = allTrackAreas.SelectMany(t => t).ToList();
score:0
If you have list of list like this
list[0]
Records1[0]
Records2[1]
Records3[2]
list[1]
Records1[0]
Records2[1]
Records3[2]
so you can make all Records in single list like using this code
list<object> test = new list<object>();
foreach(object items in list)
{
foreach(object item in items)
{
test.add(item);
}
}
then in test you got all six records.
I hope this help you.
Source: stackoverflow.com
Related Articles
- Converting a list of lists into a single list using linq
- Split list into two lists with single LINQ statement
- Reduce a list into smaller lists of two using LINQ (Functional Programming)
- How to flatten a multi level XML into a single level XML using c# code LINQ
- How to get lists of X and Y from a list of points using a single linq query?
- Converting this List of Lists to Dictionary using LINQ
- Using linQ to group list of object into new lists of objects
- c# Linq or code to extract groups from a single list of source data
- Linq list of lists to single list
- Using Linq to group a list of objects into a new grouped list of list of objects
- LINQ Partition List into Lists of 8 members
- Split string into list of N-length strings using LINQ
- Merge multiple Lists into one List with LINQ
- Converting a resource set into dictionary using linq
- Union A List of Lists Using Linq
- Group by key and send values into list using LINQ
- Linq - merging sub lists from different objects into a single object
- Using Linq and C#, trying to get two lists from a list of master items grouped by two inner lists
- Using Linq to compare a list with a set of lists in C#
- Using Linq to group a list of objects that contains primitives data into a new grouped list of objects
- Converting list with nested list to a separate list using Linq
- LINQ Split list into lists by date
- List generation from list containing lists using Linq
- Get the count of distinct elements from a list of lists using LINQ
- C# Combine two lists with nested lists into one using LINQ
- Merging few lists into one using linq
- Using LINQ to get the difference between two list of objects based only on a single object property
- How to join a list of lists in a unique list using Linq
- Using LINQ how to transform a List of Lists using elements index
- Divide a single List of Class Objects into multiple Lists based on Class Members C#
- Accessing empty Linq result is very slow
- How to store and lookup data, based on multiple xml attributes?
- return Datatable from linq query
- How to return ICollection<object> from linq, when using select new object() {}
- How to get the value of the first xml element?
- Get Records other than unique in a DataTable using asp.net C#
- Create a new list of objects containing items with the most recent date
- Linq / lambda expressions
- Group rows and get max from each group.
- LINQ Accses To Log in
- How to avoid error if no datarows match the condition in linq query?
- Efficient way to get previous n day by date data from LINQ/EF
- Linq GroupBy query syntax equivalent
- Query for string containing one or more of many strings
- Invalid Arguments - cannot convert Anonymous Type#2
- How to approach querying a parent table based on values in a child table and a child tables related data table?
- C# XML reader Search specific packet and return identifier
- How to get the next match from a MatchCollection following after a specific Capture.Index with Linq
- How to check if column is exist in Linq join query c#?
- EF: Is Foreign table of a foreign table included when using include?