My new little friend, Enum<T>(devlicious.com)

submitted by bennagebennage(1150) 4 years, 8 months ago

Some description of a help class for working with Enumerations.

2 comments |category: |Views: 46

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by gavinjoycegavinjoyce(25.7k) 4 years, 8 months ago 0

Fantastic, thanks for sharing it with us.

Reply

posted by DavidRMaltbyDavidRMaltby(1) 1 year, 3 months ago 0

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

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

Reply

information Login or create an account to comment on this story