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 Query
- 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#
More Query from same tag
- ASP.Net MVC - how can I easily serialize query results to a database?
- Translate a LINQ query to LINQJS
- Find index of array with specific length in a List?
- How do you filter a collection of objects in a base class based on the type of the sub class created?
- Check byte array contains byte array linq c#
- BindingList and LINQ?
- Avoid Incomplete row while getting Items from DataGrid
- Select Distinct List of Words from Array with LINQ
- Trouble with a "simple" linq query
- add item to property(list object type) in list object c#
- EF Core Group By with Deferred Execution and SQL side grouping
- How do I drill down to specific data in my LINQ query result?
- LINQ Select only throws IOException when the Enumerable is looked at
- Replacing foreach with LINQ query
- Interpreting difficult linq statement
- Load data from database to richtextbox in c# windows form using Linq
- migrating to dbcontext LINQ where clause string parameter
- Left Outer Join, whats the difference between these two approaches?
- Unable to write a Where Clause with Linq where data contains an array
- Code first Store Functions in a Property
- EmbeddedResourceVirtualPathProvider and @Html.TextBoxFor(Linq expression)
- Doing Recursive Function using LINQ and Delegates
- Update multiple XElements in a foreach loop
- LINQ to Objects, query arrays in object
- method to process linq group
- LINQ to Entities - create median value in grouped data
- LINQ, Lambda, confused
- Index over multiple lookup tables in SQL Server
- VB.NET Linq Left Join using Query Syntax
- How to modify this LINQ statement to show bundles with count < 3 instead of CountWithinBundle < 3