<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Comments on snippet: 'Convert a string to its respective Enum member'</title>
<link>http://snipplr.com</link>
<description>Snipplr comments feed'</description>
<language>en-us</language>
<pubDate>Mon, 20 May 2013 15:28:51 GMT</pubDate>
<item>
<title>paragjagdale said on 4/8/08</title>
<link>http://snipplr.com/view/5750/convert-a-string-to-its-respective-enum-member/</link>
<description><![CDATA[ <p>cool! it works and throws the ArgumentException as you said. Thanks for the tip!</p> ]]></description>
<pubDate>Tue, 08 Apr 2008 16:55:15 GMT</pubDate>
<guid>http://snipplr.com/view/5750/convert-a-string-to-its-respective-enum-member/</guid>
</item>
<item>
<title>mcbutterbuns said on 4/8/08</title>
<link>http://snipplr.com/view/5750/convert-a-string-to-its-respective-enum-member/</link>
<description><![CDATA[ <p>There is a simpler way than this snip:</p>

<p>(PayTypeList)Enum.Parse(typeof(PayTypeList), "Hourly");</p>

<p>Will through an ArgumentException (I believe) if the string is cannot be parsed into the type of enum requested.</p> ]]></description>
<pubDate>Tue, 08 Apr 2008 16:49:14 GMT</pubDate>
<guid>http://snipplr.com/view/5750/convert-a-string-to-its-respective-enum-member/</guid>
</item>
</channel>
</rss>