MoreEnumerableFromT Method (FuncT) |
Returns a sequence containing the values resulting from invoking (in order) each function in the source sequence of functions.
Namespace:
MoreLinq
Assembly:
MoreLinq (in MoreLinq.dll) Version: 2.8.0
Syntax public static IEnumerable<T> From<T>(
params Func<T>[] functions
)
Public Shared Function From(Of T) (
ParamArray functions As Func(Of T)()
) As IEnumerable(Of T)
public:
generic<typename T>
static IEnumerable<T>^ From(
... array<Func<T>^>^ functions
)
static member From :
functions : Func<'T>[] -> IEnumerable<'T>
Parameters
- functions
- Type: SystemFuncT
The functions to evaluate.
Type Parameters
- T
- The type of the object returned by the functions.
Return Value
Type:
IEnumerableTA sequence with the values resulting from invoking all of the
functions.
Exceptions 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