<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://gregmckinley.com/cs/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>Enum.Parse C# and VB.NET</title><link>http://gregmckinley.com/cs/blog/archive/2006/06/21/14.aspx</link><description>Enum.Parse is easy to remember with C# but I always forget the VB.Net syntax because the Enum keyword is a keyword and a class.
C# 

&amp;nbsp;40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public enum ClickType
&amp;nbsp;41&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;42&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</description><dc:language>en-US</dc:language><generator>CommunityServer 2.0 (Build: 60217.2664)</generator><item><title>re: Enum.Parse C# and VB.NET</title><link>http://gregmckinley.com/cs/blog/archive/2006/06/21/14.aspx#96</link><pubDate>Thu, 10 Jan 2008 15:07:54 GMT</pubDate><guid isPermaLink="false">9f8fffc3-80f6-44ee-b09b-68af0d4418c5:96</guid><dc:creator>K&amp;#252;rşad</dc:creator><description>One can use &amp;quot;System.Enum.Parse&amp;quot; instead of &amp;quot;[Enum].Parse&amp;quot; if he/she like.</description></item><item><title>re: Enum.Parse C# and VB.NET</title><link>http://gregmckinley.com/cs/blog/archive/2006/06/21/14.aspx#15383</link><pubDate>Tue, 23 Sep 2008 11:22:03 GMT</pubDate><guid isPermaLink="false">9f8fffc3-80f6-44ee-b09b-68af0d4418c5:15383</guid><dc:creator>Ekus</dc:creator><description>I think in VB.NET it is better to use DirectCast(object, type) instead of CType when translating casting from C#. CType internally adds try/catch for possible type mismatch, which we don't need/want in most places.</description></item></channel></rss>