MoreEnumerableFromT(FuncT, FuncT) Method

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

Definition

Namespace: MoreLinq
Assembly: MoreLinq (in MoreLinq.dll) Version: 3.4.0+b99a6a8cc504caf2d48372fe54a2f8116c59cd0c
C#
public static IEnumerable<T> From<T>(
	Func<T> function1,
	Func<T> function2
)

Parameters

function1  FuncT
The first function to evaluate.
function2  FuncT
The second function to evaluate.

Type Parameters

T
The type of the object returned by the functions.

Return Value

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