<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
  <channel>
    <title>DotNetKicks.com - Stories tagged with Enum</title>
    <description>the latest stories tagged with 'Enum' from DotNetKicks.com</description>
    <link>http://www.dotnetkicks.com/</link>
    <language>en-us</language>
    <copyright>Atweb Publishing Ltd.</copyright>
    <docs>http://backend.userland.com/rss</docs>
    <generator>DotNetKicks.com - .NET links, community driven</generator>
    <ttl>30</ttl>
    <item>
      <title>Design Guidelines Update: Enum Design</title>
      <description>This is an older post, but still valid today. 

&amp;quot;This is a recent update to the Design Guidelines. One of the most interesting additions is the section about adding values to enums (at the end of the section). This was one of the guidelines were getting an agreement across the whole company was quite challenging. Kit (frequent poster to the BCL Team Blog) spent days getting consensus for the guideline.&amp;quot; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fblogs.msdn.com%2fkcwalina%2farchive%2f2004%2f05%2f18%2f134208.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fblogs.msdn.com%2fkcwalina%2farchive%2f2004%2f05%2f18%2f134208.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/patterns/Design_Guidelines_Update_Enum_Design</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/patterns/Design_Guidelines_Update_Enum_Design</guid>
      <pubDate>Wed, 22 Apr 2009 23:03:37 GMT</pubDate>
    </item>
    <item>
      <title>C#: Enhance Enums using Extension Methods</title>
      <description>Extension Methods are one of the coolest features that have been added in .NET 3.5. I've heard arguments that there is no reason to use them, and the only reason Microsoft added them is to enable the ability to buid LINQ. Well, I do not entirely agree with that statement; in fact, I have found a cool way to use Extension Methods to enhance the System.Enum object since it cannot be inherited. Even though Enum can not be inherited, it can be extended using Extension Methods. Here's the code to an Extension Method that extends the LocalizationMarket Enum with the ToDescriptionString() method that returns the DescriptionAttributes value for the given enum value. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fpietschsoft.com%2fpost%2f2008%2f07%2fC-Enhance-Enums-using-Extension-Methods.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fpietschsoft.com%2fpost%2f2008%2f07%2fC-Enhance-Enums-using-Extension-Methods.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/tipsandtricks/C_Enhance_Enums_using_Extension_Methods</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/tipsandtricks/C_Enhance_Enums_using_Extension_Methods</guid>
      <pubDate>Thu, 17 Jul 2008 19:01:02 GMT</pubDate>
    </item>
    <item>
      <title>Data Binding an Enum with Descriptions</title>
      <description>Finally a SIMPLE, straight-forward, well thought out way to do DataBinding with an Enum. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fxml.indelv.com%2fdata-binding-enum.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fxml.indelv.com%2fdata-binding-enum.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/tipsandtricks/Data_Binding_an_Enum_with_Descriptions</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/tipsandtricks/Data_Binding_an_Enum_with_Descriptions</guid>
      <pubDate>Thu, 20 Mar 2008 19:47:31 GMT</pubDate>
    </item>
    <item>
      <title>Validate integer value before casting it to an Enum type</title>
      <description>There is one thing you should watch out for when using enumerations. You can cast any integer to an Enum type and you will not get an exception message. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fdotnettipoftheday.org%2ftips%2fvalidate_before_cast_enum_isdefined.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fdotnettipoftheday.org%2ftips%2fvalidate_before_cast_enum_isdefined.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/Validate_integer_value_before_casting_it_to_an_Enum_type</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/Validate_integer_value_before_casting_it_to_an_Enum_type</guid>
      <pubDate>Fri, 28 Sep 2007 04:40:34 GMT</pubDate>
    </item>
    <item>
      <title>Generic Enum Parsing with Extension Methods</title>
      <description>A nice use of the .net 3.5 Extension Methods feature that allows you to easily parse a string and get back the Enum value. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fgeekswithblogs.net%2fsdorman%2farchive%2f2007%2f09%2f25%2fGeneric-Enum-Parsing-with-Extension-Methods.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fgeekswithblogs.net%2fsdorman%2farchive%2f2007%2f09%2f25%2fGeneric-Enum-Parsing-with-Extension-Methods.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/tipsandtricks/Generic_Enum_Parsing_with_Extension_Methods</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/tipsandtricks/Generic_Enum_Parsing_with_Extension_Methods</guid>
      <pubDate>Wed, 26 Sep 2007 05:27:54 GMT</pubDate>
    </item>
    <item>
      <title>A strongly-typed combobox control for enum values</title>
      <description>... or why do we need the &amp;quot;where T: enum&amp;quot; generic constraint.

Kirill Osenkov posts a working sample of a combobox for choosing a value from enum's available values. It is automatically filled with values of the enumeration and has a strongly typed Value property. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fkirillosenkov.blogspot.com%2f2007%2f09%2fwhy-do-we-need-where-t-enum-generic.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fkirillosenkov.blogspot.com%2f2007%2f09%2fwhy-do-we-need-where-t-enum-generic.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/A_strongly_typed_combobox_control_for_enum_values</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/A_strongly_typed_combobox_control_for_enum_values</guid>
      <pubDate>Sun, 16 Sep 2007 00:15:44 GMT</pubDate>
    </item>
    <item>
      <title>My new little friend, Enum&amp;lt;T&amp;gt;</title>
      <description>Some description of a help class for working with Enumerations. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fdevlicious.com%2fblogs%2fchristopher_bennage%2farchive%2f2007%2f09%2f13%2fmy-new-little-friend-enum-lt-t-gt.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fdevlicious.com%2fblogs%2fchristopher_bennage%2farchive%2f2007%2f09%2f13%2fmy-new-little-friend-enum-lt-t-gt.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/tipsandtricks/My_new_little_friend_Enum_T</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/tipsandtricks/My_new_little_friend_Enum_T</guid>
      <pubDate>Fri, 14 Sep 2007 15:16:01 GMT</pubDate>
    </item>
    <item>
      <title>XmlEnumAttribute extrahieren</title>
      <description>Instruction on how to extract an XmlAttribute from a Member, in particular the XmlEnumAttribute from a enum member. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fmac.defx.de%2f2006%2f12%2f16%2fxmlenumattribute-extrahieren%2f"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fmac.defx.de%2f2006%2f12%2f16%2fxmlenumattribute-extrahieren%2f" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/xml/XmlEnumAttribute_extrahieren</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/xml/XmlEnumAttribute_extrahieren</guid>
      <pubDate>Thu, 02 Aug 2007 13:57:14 GMT</pubDate>
    </item>
    <item>
      <title>Checking a value against an Enum (Enum.IsDefined)</title>
      <description>This will check to see if a value (string or int) is a match for a enum.  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fdevlicio.us%2fblogs%2fderik_whittaker%2farchive%2f2007%2f06%2f14%2fchecking-a-value-against-an-enum-enum-isdefined.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fdevlicio.us%2fblogs%2fderik_whittaker%2farchive%2f2007%2f06%2f14%2fchecking-a-value-against-an-enum-enum-isdefined.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/tipsandtricks/Checking_a_value_against_an_Enum_Enum_IsDefined</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/tipsandtricks/Checking_a_value_against_an_Enum_Enum_IsDefined</guid>
      <pubDate>Thu, 14 Jun 2007 11:29:52 GMT</pubDate>
    </item>
    <item>
      <title>Generics without Collections, Part 3</title>
      <description>Using generics for things other than creating collections (Enums this time). Advanced generics use &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fhonestillusion.com%2fblogs%2fblog_0%2farchive%2f2006%2f11%2f20%2fGenerics-without-Collections_2C00_-Pt.-3.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fhonestillusion.com%2fblogs%2fblog_0%2farchive%2f2006%2f11%2f20%2fGenerics-without-Collections_2C00_-Pt.-3.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/Generics_without_Collections_Part_3</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/Generics_without_Collections_Part_3</guid>
      <pubDate>Mon, 19 Feb 2007 23:31:01 GMT</pubDate>
    </item>
    <item>
      <title>Parsing Enum strings in .NET</title>
      <description>A quick and easy tip for converting strings back to Enum types. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.geekzilla.co.uk%2fView3C1F25C4-1681-44D6-A34C-133ECC79FA24.htm"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.geekzilla.co.uk%2fView3C1F25C4-1681-44D6-A34C-133ECC79FA24.htm" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/Parsing_Enum_strings_in_NET</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/Parsing_Enum_strings_in_NET</guid>
      <pubDate>Sun, 31 Dec 2006 14:31:02 GMT</pubDate>
    </item>
    <item>
      <title>Dustin Campbell: Giving Enums a Little Love</title>
      <description>Dustin Campbell (Developer Express' Senior &amp;quot;Whipping Boy&amp;quot;) discusses improvements that should be made in order to round out the Enumeration data type in .NET (to provide for both increased functionality and improved readability of code that uses enums). &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fdiditwith.net%2fCommentView%2cguid%2c5123de5e-3ab6-4d09-b98f-a9a05cef6aad.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fdiditwith.net%2fCommentView%2cguid%2c5123de5e-3ab6-4d09-b98f-a9a05cef6aad.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/Dustin_Campbell_Giving_Enums_a_Little_Love</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/Dustin_Campbell_Giving_Enums_a_Little_Love</guid>
      <pubDate>Thu, 31 Aug 2006 11:31:01 GMT</pubDate>
    </item>
    <item>
      <title>Generic Parse method on Enum</title>
      <description>A nice little generic enum parser utility class  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fweblogs.asp.net%2fwim%2farchive%2f2006%2f07%2f06%2fGeneric-Parse-method-on-Enum-_2D00_-a-solution.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fweblogs.asp.net%2fwim%2farchive%2f2006%2f07%2f06%2fGeneric-Parse-method-on-Enum-_2D00_-a-solution.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/Generic_Parse_method_on_Enum</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/Generic_Parse_method_on_Enum</guid>
      <pubDate>Fri, 07 Jul 2006 08:11:03 GMT</pubDate>
    </item>
  </channel>
</rss>