QueryableExSelectManyTSource, TOther Method (IQueryableTSource, IEnumerableTOther) |
Projects each element of a sequence to an given sequence and flattens the resulting sequences into one sequence.
Namespace: System.LinqAssembly: System.Interactive.Providers (in System.Interactive.Providers.dll) Version: 1.2.0.0
Syntaxpublic static IQueryable<TOther> SelectMany<TSource, TOther>(
this IQueryable<TSource> source,
IEnumerable<TOther> other
)
Parameters
- source
- Type: System.LinqIQueryableTSource
A sequence of values to project. - other
- Type: System.Collections.GenericIEnumerableTOther
Inner sequence each source sequenec element is projected onto.
Type Parameters
- TSource
- First source sequence element type.
- TOther
- Second source sequence element type.
Return Value
Type:
IQueryableTOtherSequence flattening the sequences that result from projecting elements in the source sequence.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IQueryableTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also