<?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: Bind with Enum in Silverlight</title>
	<atom:link href="http://www.sehajpal.com/index.php/2010/02/bind-with-enum-in-silverlight/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sehajpal.com/index.php/2010/02/bind-with-enum-in-silverlight/</link>
	<description>No path is too difficult. No destination is too far !</description>
	<lastBuildDate>Wed, 08 Sep 2010 14:17:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: lancome marianne</title>
		<link>http://www.sehajpal.com/index.php/2010/02/bind-with-enum-in-silverlight/comment-page-1/#comment-271</link>
		<dc:creator>lancome marianne</dc:creator>
		<pubDate>Wed, 16 Jun 2010 04:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.sehajpal.com/?p=62#comment-271</guid>
		<description>Your blog is very beautiful, can you tell me how to make.</description>
		<content:encoded><![CDATA[<p>Your blog is very beautiful, can you tell me how to make.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WP Themes</title>
		<link>http://www.sehajpal.com/index.php/2010/02/bind-with-enum-in-silverlight/comment-page-1/#comment-267</link>
		<dc:creator>WP Themes</dc:creator>
		<pubDate>Sat, 12 Jun 2010 02:31:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.sehajpal.com/?p=62#comment-267</guid>
		<description>Good brief and this mail helped me alot in my college assignement. Thank you for your information.</description>
		<content:encoded><![CDATA[<p>Good brief and this mail helped me alot in my college assignement. Thank you for your information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Halls</title>
		<link>http://www.sehajpal.com/index.php/2010/02/bind-with-enum-in-silverlight/comment-page-1/#comment-235</link>
		<dc:creator>Justin Halls</dc:creator>
		<pubDate>Tue, 18 May 2010 10:19:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.sehajpal.com/?p=62#comment-235</guid>
		<description>OK, it can be simplified a bit:-
public IEnumerable GetEnumValues(Type enumType)
		{
			return from gField in enumType.GetFields(BindingFlags.Static &#124; BindingFlags.Public)
				   select (Enum)gField.GetValue(enumType);
		}

and then the function is called simply by:-

cbEventTypes.ItemsSource = GetEnumValues(typeof(CONDITIONAL_EVENT_TYPE));

although it might benefit from some checks in the GetEnumValues function to ensure that the type passed actuall is an enum.</description>
		<content:encoded><![CDATA[<p>OK, it can be simplified a bit:-<br />
public IEnumerable GetEnumValues(Type enumType)<br />
		{<br />
			return from gField in enumType.GetFields(BindingFlags.Static | BindingFlags.Public)<br />
				   select (Enum)gField.GetValue(enumType);<br />
		}</p>
<p>and then the function is called simply by:-</p>
<p>cbEventTypes.ItemsSource = GetEnumValues(typeof(CONDITIONAL_EVENT_TYPE));</p>
<p>although it might benefit from some checks in the GetEnumValues function to ensure that the type passed actuall is an enum.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Halls</title>
		<link>http://www.sehajpal.com/index.php/2010/02/bind-with-enum-in-silverlight/comment-page-1/#comment-234</link>
		<dc:creator>Justin Halls</dc:creator>
		<pubDate>Tue, 18 May 2010 08:39:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.sehajpal.com/?p=62#comment-234</guid>
		<description>Just what i&#039;ve been looking for - BUT, I dont understand what you apss to the GetEnumValues() function.  In the example you use new SehajService.Currency(), but I have a simple enum.  How do i convert this into an acceptable Enum type for the parameter?</description>
		<content:encoded><![CDATA[<p>Just what i&#8217;ve been looking for &#8211; BUT, I dont understand what you apss to the GetEnumValues() function.  In the example you use new SehajService.Currency(), but I have a simple enum.  How do i convert this into an acceptable Enum type for the parameter?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WP Themes</title>
		<link>http://www.sehajpal.com/index.php/2010/02/bind-with-enum-in-silverlight/comment-page-1/#comment-221</link>
		<dc:creator>WP Themes</dc:creator>
		<pubDate>Fri, 30 Apr 2010 17:54:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.sehajpal.com/?p=62#comment-221</guid>
		<description>Nice dispatch and this enter helped me alot in my college assignement. Thanks you seeking your information.</description>
		<content:encoded><![CDATA[<p>Nice dispatch and this enter helped me alot in my college assignement. Thanks you seeking your information.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
