score:2
Accepted answer
Maybe you just need SelectMany
?
var results = AnArrayOfThings.SelectMany(x => Function(x));
Or in query syntax:
var results = from thing in AnArrayOfThings
from thingInAList in Function(thing)
select thingInAList;
Source: stackoverflow.com
Related Articles
- Merge multiple Lists into one List with LINQ
- LINQ to SQL, How to merge multiple IQueryable Lists of different subtype?
- How to merge two lists while adding metadata indicating value source with LINQ statement?
- How to merge multiple lists based on a condition using LINQ
- Does this LINQ code perform multiple lookups on the original data?
- Linq get values not shared across multiple lists
- Interleaving multiple (more than 2) irregular lists using LINQ
- How to reuse a linq expression for 'Where' when using multiple source tables
- LINQ Source Code Available
- multiple orderby in this linq code
- Using Linq and C#, how could I kinda merge two lists over some criteria?
- Merge duplicate data without affecting others in LINQ code
- Merge 2 Lists of different types using LinQ
- Merge equal items with multiple lists but different length
- creating Linq to sqlite dbml from DbLinq source code
- LINQ Query to Filter Items By Criteria From Multiple Lists
- LINQ How to return common objects across multiple lists
- How to combine multiple lists using LINQ lambda
- Find common items in multiple lists in C# linq
- LINQ - joining multiple lists
- Linq Merge 2 Lists to One
- LINQ - Combine multiple lists to form a new list and align them by key?
- Linq Merge lists
- Group and Merge multiple values from single List using LINQ
- C# Linq merge multiple lists?
- LINQ merging multiple lists
- How to assign multiple LINQ Include() statements to a variable for code re-use?
- LINQ query to merge multiple rows
- Joining & Transposing multiple Lists using LINQ
- Merge two object lists in C# with LINQ
- Calling functions in a LINQ query
- How to concatenate result of GroupBy using Linq
- No matching point found between 2 collections of System.Windows.Points
- LINQ : two separate queries in a single distinct result
- Is it possible to have one LINQ in one line of code for
- Checking if a XML child element exists with Linq to XML
- To compare Date and Datetime in ASP.NET mvc 3?
- Linq Query with using sum and order by
- How to create a dynamic 'contains or LIKE' Expression to be used with Linq against OData service
- restrict objects based on count of sub list in LINQ
- Understanding lazy loading optimization in C#
- Improving SQL query generated by LINQ to EF
- Why does List.Count() and IEnumerable.Count() return different results?
- Entity Framework / LINQ / .NET - Perform 'LIKE' on Date
- How to get a list of week days in a month?
- Another way of solving dictionary search (without LINQ)
- Linq query to join 2 lists of objects and get the altered values as list
- How to get multiple XML elements that are descendants of another element
- Show searched value in exception when nothing is found with First()
- LINQ To Entities cannot generate string MVC Razor