<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: VB.NET Enum class</title>
	<atom:link href="http://hobbylobby.wordpress.com/2007/09/02/vbnet-enum-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://hobbylobby.wordpress.com/2007/09/02/vbnet-enum-class/</link>
	<description>&#124;hobby&#124;vb.net&#124;toys&#124;ubuntu&#124;comics&#124;LPs&#124;programming&#124;</description>
	<lastBuildDate>Sun, 27 Dec 2009 17:31:01 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Steve Scrimpshire</title>
		<link>http://hobbylobby.wordpress.com/2007/09/02/vbnet-enum-class/#comment-2389</link>
		<dc:creator>Steve Scrimpshire</dc:creator>
		<pubDate>Mon, 05 Jan 2009 22:38:30 +0000</pubDate>
		<guid isPermaLink="false">http://hobbylobby.wordpress.com/2007/09/02/vbnet-enum-class/#comment-2389</guid>
		<description>I solved my own &quot;problem&quot;. I discovered I can just add a MyEnums.vb *file* in my project and put all the enums I want in there:

Public Enum firstEnum
    this = 1
    that = 2
End Enum

Public Enum secondEnum
    these = 1
    those = 2
End Enum

And I can access these enums anywhere within the namespace of that project through just

    firstEnum.this

or

    secondEnum.those</description>
		<content:encoded><![CDATA[<p>I solved my own &#8220;problem&#8221;. I discovered I can just add a MyEnums.vb *file* in my project and put all the enums I want in there:</p>
<p>Public Enum firstEnum<br />
    this = 1<br />
    that = 2<br />
End Enum</p>
<p>Public Enum secondEnum<br />
    these = 1<br />
    those = 2<br />
End Enum</p>
<p>And I can access these enums anywhere within the namespace of that project through just</p>
<p>    firstEnum.this</p>
<p>or</p>
<p>    secondEnum.those</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Scrimpshire</title>
		<link>http://hobbylobby.wordpress.com/2007/09/02/vbnet-enum-class/#comment-2388</link>
		<dc:creator>Steve Scrimpshire</dc:creator>
		<pubDate>Mon, 05 Jan 2009 22:00:28 +0000</pubDate>
		<guid isPermaLink="false">http://hobbylobby.wordpress.com/2007/09/02/vbnet-enum-class/#comment-2388</guid>
		<description>Thanks for this post.

This is truly a question because of my ignorance, but I understand the beauty of having your enums all in one tiny-named class, but what do you mean by being able to pass around &quot;a tidy &#039;myEnums&#039; object&quot;? I thought enums are automatically considered shared and can&#039;t be accessed through an instance of a class.

I found this post looking for a way to be able to use my enums from within an entire huge project without having to type out MyEnums.MySpecialEnum.Whatever everytime, but I don&#039;t have a common class that all my controls that may use it can inherit from. I was trying to determine if I could somehow make my enum class an interface instead and Implement that interface in all my classes, so I could use &quot;MySpecialEnum.Whatever&quot; everywhere instead of having to type &quot;MyEnums.MySpecialEnum.Whatever&quot;

Thanks for any advice you or anyone else out there can give me.</description>
		<content:encoded><![CDATA[<p>Thanks for this post.</p>
<p>This is truly a question because of my ignorance, but I understand the beauty of having your enums all in one tiny-named class, but what do you mean by being able to pass around &#8220;a tidy &#8216;myEnums&#8217; object&#8221;? I thought enums are automatically considered shared and can&#8217;t be accessed through an instance of a class.</p>
<p>I found this post looking for a way to be able to use my enums from within an entire huge project without having to type out MyEnums.MySpecialEnum.Whatever everytime, but I don&#8217;t have a common class that all my controls that may use it can inherit from. I was trying to determine if I could somehow make my enum class an interface instead and Implement that interface in all my classes, so I could use &#8220;MySpecialEnum.Whatever&#8221; everywhere instead of having to type &#8220;MyEnums.MySpecialEnum.Whatever&#8221;</p>
<p>Thanks for any advice you or anyone else out there can give me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
