MoreEnumerableFromT Method (FuncT, FuncT, FuncT) |
Returns a sequence containing the result of invoking each parameter function in order.
Namespace:
MoreLinq
Assembly:
MoreLinq (in MoreLinq.dll) Version: 3.3.1+b77df70598ab84c28cd43dcf74594024b6d575e1
Syntax public static IEnumerable<T> From<T>(
Func<T> function1,
Func<T> function2,
Func<T> function3
)
Public Shared Function From(Of T) (
function1 As Func(Of T),
function2 As Func(Of T),
function3 As Func(Of T)
) As IEnumerable(Of T)
public:
generic<typename T>
static IEnumerable<T>^ From(
Func<T>^ function1,
Func<T>^ function2,
Func<T>^ function3
)
static member From :
function1 : Func<'T> *
function2 : Func<'T> *
function3 : Func<'T> -> IEnumerable<'T>
Parameters
- function1
- Type: SystemFuncT
The first function to evaluate. - function2
- Type: SystemFuncT
The second function to evaluate. - function3
- Type: SystemFuncT
The third function 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
function1,
function2 and
function3.
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