DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

11
kicks
published 3 months, 9 days ago, submitted by jonas jonas 3 months, 15 days ago

blogs.msdn.com — Tim Sneath writes some C# to convert a string into an enum.

Add a comment 2 comments | category: | Views: 17 | Get KickIt image code
tags: | tag it

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:
You could also try this:
http://www.danrigsby.com/blog/index.php/2007/12/16/missing-static-generic-alternatives-in-enum-class/

It would allow you to do like so:

Color color = EnumUtilities.ParseEnum<Color>("Red");

Instead of:

Color color = (Color)Enum.Parse(typeof(Color), "Red");
posted by DanRigsby 3 months, 7 days ago
posted by cherian 3 months, 6 days ago



information Login or create an account to comment on this story
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge