<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Operator &#039;=&#039; is not defined for DevForce enumeration classes</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Operator &#039;=&#039; is not defined for DevForce enumeration classes</description>
  <pubDate>Wed, 15 Apr 2026 02:04:33 -700</pubDate>
  <lastBuildDate>Thu, 12 Jul 2007 13:34:08 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=174</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Operator &#039;=&#039; is not defined for DevForce enumeration classes : I believe the default behavior...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=174&amp;PID=376#376</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 174<br /><strong>Posted:</strong> 12-Jul-2007 at 1:34pm<br /><br /><P =Ms&#111;normal><FONT size=3><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">I believe the default behavior of == &#091;C#&#093; and = &#091;VB&#093;, for reference types, &nbsp;is determine whether the objects being compared represent the same instance.&nbsp; Equals, on the other hand, looks to determine equality by a&nbsp;prescribed comparison of the two objects (e.g., if it looks like a duck and quacks like a duck, it's a duck).&nbsp; So I'm not surprised that Equals is the one that's working for enum entities, rather than "=".&nbsp; Whether the docs are just wrong or there's been some change in the enumeration entities behavior (the behavior of the comparison operators for a given class can be overridden in that class), I'm not entirely sure, but my guess would be that the docs are just wrong, and always were.</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><o:p><FONT size=3></FONT></o:p></SPAN></P><P =Ms&#111;normal><FONT size=3><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">Thanks for the heads up - and stick with Equals!</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'">&nbsp;<o:p></o:p></SPAN></FONT></P>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 13:34:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=174&amp;PID=376#376</guid>
  </item> 
  <item>
   <title>Operator &#039;=&#039; is not defined for DevForce enumeration classes : Operator &amp;#039;=&amp;#039; is not...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=174&amp;PID=375#375</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=20" rel="nofollow">Customer</a><br /><strong>Subject:</strong> 174<br /><strong>Posted:</strong> 12-Jul-2007 at 1:32pm<br /><br />Operator '=' is not defined for DevForce enumeration classes.<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p><P =Ms&#111;normal>Although it seems to be exampled with it in the Developer’s guide…</P><P =Ms&#111;normal>I’m having to use the Equals method… Is using Equals the best technique?</P>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 13:32:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=174&amp;PID=375#375</guid>
  </item> 
 </channel>
</rss>