Showing posts with label Enum. Show all posts
Showing posts with label Enum. Show all posts

Friday, September 12, 2008

Easy way to parse enums?

This is how to do it:

MyEnum x = (MyEnum)Enum.Parse( typeof( MyEnum ), "SomeString" );
eXTReMe Tracker