Ejemplo n.º 1
0
 /// <summary>
 /// Returns an <see cref="IEnumerable{T}"/> sequence with the specified <paramref name="source"/> as the only element.
 /// </summary>
 /// <typeparam name="TSource">The type of <paramref name="source"/>.</typeparam>
 /// <param name="source">The value to yield into an <see cref="IEnumerable{T}"/> sequence.</param>
 /// <returns>An <see cref="IEnumerable{T}"/> sequence with the specified <paramref name="source"/> as the only element.</returns>
 public static IEnumerable <TSource> Yield <TSource>(this TSource source)
 {
     return(EnumerableUtility.Yield(source));
 }