<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>string to enum</title><link>http://weblogs.asp.net/ruslan/archive/2008/04/24/string-to-enum.aspx</link><description>How do you convert a string into an enumeration? object Enum .Parse(System. Type enumType, string value, bool ignoreCase); example: enum Colour { Red, Green, Blue } Colour c = ( Colour ) Enum .Parse( typeof ( Colour ), "Red" , true ); Console .WriteLine</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: string to enum</title><link>http://weblogs.asp.net/ruslan/archive/2008/04/24/string-to-enum.aspx#6130888</link><pubDate>Sat, 26 Apr 2008 00:56:11 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6130888</guid><dc:creator>Miron</dc:creator><author>Miron</author><description>&lt;p&gt;The method Enum.Parse will throw an exception if the enum doesn't have such value. Take a look at this post:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://mironabramson.com/blog/post/2008/03/Another-version-for-the-missing-method-EnumTryParse.aspx"&gt;mironabramson.com/.../Another-version-for-the-missing-method-EnumTryParse.aspx&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6130888" width="1" height="1"&gt;</description></item><item><title>re: string to enum</title><link>http://weblogs.asp.net/ruslan/archive/2008/04/24/string-to-enum.aspx#6128007</link><pubDate>Thu, 24 Apr 2008 20:24:38 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6128007</guid><dc:creator>Wim Hollebrandse</dc:creator><author>Wim Hollebrandse</author><description>&lt;p&gt;Dude - why regurgitate stuff that was posted back in 2004? Besides, it's hardly anything worth posting.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6128007" width="1" height="1"&gt;</description></item></channel></rss>