System::MakeYieldEnumerator method

System::MakeYieldEnumerator method

Creates an IEnumerator from a yield function.

template<typename T> SharedPtr<Collections::Generic::IEnumerator<T>> System::MakeYieldEnumerator(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 IEnumerator

See Also