Get Enum from matching string

Posted on: Wed May 19 13:19:08 -0700 2010. Updated on: Wed May 19 13:19:08 -0700 2010.
Category: DotNet

Getting the enum from the int representation of it is pretty easy, but you can't do the same kind of cast when you want to go from a string representation to the enum.

this link explains it weill: http://blogs.msdn.com/tims/archive/2004/04/02/106310.aspx

Comments:

Add a Comment:

simple_captcha.jpg
(human authentication)


Ads

Categories

About

Random foliage

This website is meant to be a reference for ASP Dot Net developers. The entries are a compilation of things I've figured out how to do and that I deem useful to keep of track for future reference. Assumptions: web development with: C Sharp (vb sucks), visual studio 05/08, .net 3.5, meant for programmers. Written by: James Reategui.