Click or drag to resize

MoreEnumerableFromT Method (FuncT)

Returns a single-element sequence containing the result of invoking the function.

Namespace:  MoreLinq
Assembly:  MoreLinq (in MoreLinq.dll) Version: 3.2.0+5205ea241d72b079436060d330cd5c2eae7cdcdf
Syntax
public static IEnumerable<T> From<T>(
	Func<T> function
)

Parameters

function
Type: SystemFuncT
The function to evaluate.

Type Parameters

T
The type of the object returned by the function.

Return Value

Type: IEnumerableT
A sequence with the value resulting from invoking function.
Remarks
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.
See Also