Yield Method
Definition
- Namespace
- Cuemon.Extensions.Collections.Generic
- Assemblies
- Cuemon.Extensions.Collections.Generic.dll
Yield<T>(T)
Returns an IEnumerable<T> sequence with the specified value as the only element.
public static IEnumerable<T> Yield<T>(this T value)
Parameters
valueTThe
Tto extend.
Returns
- IEnumerable<T>
An IEnumerable<T> sequence with the specified
valueas the only element.
Type Parameters
TThe type of the element of IEnumerable<T>.