MoreEnumerableFromT(FuncT) Method

Returns a sequence containing the values resulting from invoking (in order) each function in the source sequence of functions.

Definition

Namespace: MoreLinq
Assembly: MoreLinq (in MoreLinq.dll) Version: 3.4.0+b99a6a8cc504caf2d48372fe54a2f8116c59cd0c
C#
public static IEnumerable<T> From<T>(
	params Func<T>[] functions
)

Parameters

functions  FuncT
The functions 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 all of the functions.

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.

Exceptions

ArgumentNullExceptionWhen functions is null.

See Also