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
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