Click or drag to resize

MoreEnumerableFromT Method (FuncT, FuncT)

Returns a sequence containing the result of invoking each parameter function in order.

Namespace:  MoreLinq
Assembly:  MoreLinq (in MoreLinq.dll) Version: 2.7.0
Syntax
public static IEnumerable<T> From<T>(
	Func<T> function1,
	Func<T> function2
)

Parameters

function1
Type: SystemFuncT
The first function to evaluate.
function2
Type: SystemFuncT
The second function to evaluate.

Type Parameters

T
The type of the object returned by the functions.

Return Value

Type: IEnumerableT
A sequence with the values resulting from invoking function1 and function2.
Remarks
This operator uses deferred execution and streams the results. If the resulting sequence is enumerated multiple times, the functions will be invoked multiple times too.
See Also