Thursday February 11th

Wednesday February 10th

My new little friend, Enum<T>

Some description of a help class for working with Enumerations.

2 comments

Fantastic, thanks for sharing it with us.

Thanks for that. With LINQ you can simplify the GetValues method to..

public static IEnumerable<T> GetValues()
{
return Enum.GetValues(typeof(T)).Cast<T>();
}

Commenting on Stories is limited for now and will open up to those recommended by the community. Learn how
Loading DotNetKicks...
brought to you by the Kicks Network