Generic Enum Parsing with Extension Methods(geekswithblogs.net)

submitted by usshermussherm(5285) 4 years, 8 months ago

A nice use of the .net 3.5 Extension Methods feature that allows you to easily parse a string and get back the Enum value.

1 comment |category: |Views: 85

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

Also see : http://www.dotnetkicks.com/tipsandtricks/My_new_little_friend_Enum_T (same method without the extension method)

Reply

information Login or create an account to comment on this story