Method Yield
Yield<T>(T)
Wraps this object instance into an IEnumerable<T> consisting of a single item.
public static IEnumerable<T> Yield<T>(this T item)
Parameters
itemTThe instance that will be wrapped.
Returns
- IEnumerable<T>
An IEnumerable<T> consisting of a single item.
Type Parameters
TType of the object.