 | BcfReadOnlyArrayListExtensionsSelectManyTSource, TResult Method (IEnumerableTSource, FuncTSource, BcfReadOnlyArrayListTResult) |
[This is preliminary documentation and is subject to change.]
Projects each element of a sequence to an
IEnumerableT,
flattens the resulting sequences into one sequence.
Namespace:
System.Linq
Assembly:
CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.0.0-beta7
Syntaxpublic static IEnumerable<TResult> SelectMany<TSource, TResult>(
this IEnumerable<TSource> source,
Func<TSource, BcfReadOnlyArrayList<TResult>> collectionSelector
)
<ExtensionAttribute>
Public Shared Function SelectMany(Of TSource, TResult) (
source As IEnumerable(Of TSource),
collectionSelector As Func(Of TSource, BcfReadOnlyArrayList(Of TResult))
) As IEnumerable(Of TResult)
Parameters
- source
- Type: System.Collections.GenericIEnumerableTSource
The source. - collectionSelector
- Type: SystemFuncTSource, BcfReadOnlyArrayListTResult
A transform function to apply to each element of the input sequence.
Type Parameters
- TSource
- The type of the elements of source.
- TResult
- The type of the elements of the resulting sequence.
Return Value
Type:
IEnumerableTResult
An
IEnumerableT whose elements are the result
of invoking the one-to-many transform function
collectionSelector on each
element of
source and then mapping each of those sequence elements and their
corresponding source element to a result element.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableTSource. 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