<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Finding an Enum value based on its text</title>
	<atom:link href="http://www.developingfor.net/net/finding-an-enum-value-based-on-its-text.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.developingfor.net/net/finding-an-enum-value-based-on-its-text.html</link>
	<description>Real World .NET Methods, Tricks, and Examples</description>
	<lastBuildDate>Fri, 30 Jul 2010 16:13:40 -0400</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Rudedog2</title>
		<link>http://www.developingfor.net/net/finding-an-enum-value-based-on-its-text.html/comment-page-1#comment-2150</link>
		<dc:creator>Rudedog2</dc:creator>
		<pubDate>Mon, 17 Nov 2008 20:49:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.developingfor.net/net/finding-an-enum-value-based-on-its-text.html#comment-2150</guid>
		<description>You are storing the enums as strings, which is not necessary.  Keep in mind that Items is an array of System.Objects.  The control uses the inherited ToString() method to display the objects in Items.  I suggest that you store the objects directly, instead.

foreach (Vegetables obj in Enum.GetValues(typeof(Vegetables)))
            {
                ;
                this.comboBox1.Items.Add(obj);
            }</description>
		<content:encoded><![CDATA[<p>You are storing the enums as strings, which is not necessary.  Keep in mind that Items is an array of System.Objects.  The control uses the inherited ToString() method to display the objects in Items.  I suggest that you store the objects directly, instead.</p>
<p>foreach (Vegetables obj in Enum.GetValues(typeof(Vegetables)))<br />
            {<br />
                ;<br />
                this.comboBox1.Items.Add(obj);<br />
            }</p>
]]></content:encoded>
	</item>
</channel>
</rss>
