System::MakeYieldEnumerable method

System::MakeYieldEnumerable method

Creates an IEnumerable from a yield function.

template<typename T> SharedPtr<Collections::Generic::IEnumerable<T>> System::MakeYieldEnumerable(const Details::YieldFunction<T> &fnc)
ParameterDescription
TThe type of elements in the sequence
ParameterTypeDescription
fncconst Details::YieldFunction<T>&The yield function to execute

ReturnValue

Shared pointer to the IEnumerable

See Also