MoreEnumerableEvaluateT Method
Returns a sequence containing the values resulting from invoking (in order) each function in the source sequence of functions.
Namespace: MoreLinqAssembly: MoreLinq (in MoreLinq.dll) Version: 4.4.0+6d97c3b1d482f98300f4446df14742b0e3fafbec
public static IEnumerable<T> Evaluate<T>(
this IEnumerable<Func<T>> functions
)
<ExtensionAttribute>
Public Shared Function Evaluate(Of T) (
functions As IEnumerable(Of Func(Of T))
) As IEnumerable(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static IEnumerable<T>^ Evaluate(
IEnumerable<Func<T>^>^ functions
)
[<ExtensionAttribute>]
static member Evaluate :
functions : IEnumerable<Func<'T>> -> IEnumerable<'T>
- functions IEnumerableFuncT
- The functions to evaluate.
- T
- The type of the object returned by the functions.
IEnumerableTA sequence with results from invoking
functions.In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableFuncT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This operator uses deferred execution and streams the results.
If the resulting sequence is enumerated multiple times, the functions will be
evaluated multiple times too.