Party for one

Inspired by Jimmy Bogard’s More missing LINQ operators i found another one:

public static IEnumerable<t> MakeEnumerable<t>(this T element)
{
 yield return element;
}

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>