Click or drag to resize

selectManySelectManyT, R Method

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static IList<R> SelectMany<T, R>(
	this IList<T> this,
	Func<T, IList<R>> selector,
	Nullable<bool> samecount = false
)

Parameters

this
Type: System.Collections.GenericIListT
The IListT to map.
selector
Type: SystemFuncT, IListR
The selector function from this's element to multiple elements.
samecount (Optional)
Type: SystemNullableBoolean
Whether it can be assured all the elements in this map to the same amount of elements for optimization. If , the resultant values will be checked.

Type Parameters

T
Type of the original IListT.
R
The type of the resultant IListT.

Return Value

Type: IListR
A read-only IListT that concatenates the result of this through selector.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IListT. 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