MoreEnumerableFromT(FuncT) Method
Returns a single-element sequence containing the result of invoking the function.
Namespace: MoreLinqAssembly: MoreLinq (in MoreLinq.dll) Version: 4.4.0+6d97c3b1d482f98300f4446df14742b0e3fafbec
public static IEnumerable<T> From<T>(
Func<T> function
)
Public Shared Function From(Of T) (
function As Func(Of T)
) As IEnumerable(Of T)
public:
generic<typename T>
static IEnumerable<T>^ From(
Func<T>^ function
)
static member From :
function : Func<'T> -> IEnumerable<'T>
- function FuncT
- The function to evaluate.
- T
- The type of the object returned by the function.
IEnumerableTA sequence with the value resulting from invoking
function.
This operator uses deferred execution and streams the results.
If the resulting sequence is enumerated multiple times, the function will be
invoked multiple times too.