<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" media="screen" href="/App_Themes/default/rss.xslt"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Comment Feed for SuppressMessage for all enum members. (TechOff on Channel 9)</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/forums/techoff/476871-suppressmessage-for-all-enum-members/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Comment Feed for SuppressMessage for all enum members. (TechOff on Channel 9)</title><link>http://channel9.msdn.com/forums/TechOff/476871-SuppressMessage-for-all-enum-members/</link></image><description>SuppressMessage for all enum members.</description><link>http://channel9.msdn.com/forums/TechOff/476871-SuppressMessage-for-all-enum-members/</link><language>en-us</language><pubDate>Sat, 04 Jul 2009 22:59:10 GMT</pubDate><lastBuildDate>Sat, 04 Jul 2009 22:59:10 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3608.3122, Culture=neutral, PublicKeyToken=null)</generator><item><title>Re: Re: Re: Re: Re: Re: SuppressMessage for all enum members.</title><description>&lt;p&gt;That bugs me too. Anything that makes you put stuff between the members (like summaries or SuppressMessageAttributes) instantly makes the enum annoying to read.&lt;/p&gt;
&lt;p&gt;With regards to numerical values: that always felt dodgy to me, for reasons I can't quite put my finger on. I don't know why, but for some reason it feels wrong to not treat the internal value (and type) as anything other than an internal representation of the enum.&lt;/p&gt;
&lt;p&gt;That doesn't stop me from doing it, but it still feels wrong.&lt;/p&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/476871-SuppressMessage-for-all-enum-members/?CommentID=476894</link><pubDate>Sat, 04 Jul 2009 22:59:10 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/476871-SuppressMessage-for-all-enum-members/?CommentID=476894</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/476894/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>That bugs me too. Anything that makes you put stuff between the members (like summaries or SuppressMessageAttributes) instantly makes the enum annoying to read.
With regards to numerical values: that always felt dodgy to me, for reasons I can't quite put my finger on. I don't know why, but for some&amp;#8230;</evnet:previewtext><dc:creator>Bas</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/476894/Trackback.aspx</trackback:ping></item><item><title>Re: Re: Re: Re: Re: SuppressMessage for all enum members.</title><description>&lt;p&gt;That's what comments are for :)&lt;/p&gt;
&lt;p&gt;Whilst we're on the subject, I hate having to put Enum member info on their own line in &amp;lt;summary&amp;gt; blocks. I'd prefer it if the C# documentation generator did a similar thing to the C++ doc generator and include // comments made on the same line as the member.&lt;/p&gt;
&lt;p&gt;So rather than:&lt;/p&gt;
&lt;p&gt;public enum Foo {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;summary&amp;gt;Some member (0xFF)&amp;lt;/summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bar = 0xFF,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Baz,&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;You can do this:&lt;/p&gt;
&lt;p&gt;public enum Foo {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bar = 0xFF, // Some member&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Baz,&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;I'd also like it if intellisense showed you the numeric value of an enum member rather than having to put a copy in the &amp;lt;summary&amp;gt; comment.&lt;/p&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/476871-SuppressMessage-for-all-enum-members/?CommentID=476893</link><pubDate>Sat, 04 Jul 2009 22:39:53 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/476871-SuppressMessage-for-all-enum-members/?CommentID=476893</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/476893/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>That's what comments are for :)
Whilst we're on the subject, I hate having to put Enum member info on their own line in &amp;lt;summary&amp;gt; blocks. I'd prefer it if the C# documentation generator did a similar thing to the C++ doc generator and include // comments made on the same line as the member.
So&amp;#8230;</evnet:previewtext><dc:creator>W3bbo</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/476893/Trackback.aspx</trackback:ping></item><item><title>Re: Re: Re: Re: SuppressMessage for all enum members.</title><description>&lt;p&gt;Yeah, I thought about doing it in FxCop, but I liked the idea of the code making it clear that the enum members were definitely named that way for a reason.&lt;/p&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/476871-SuppressMessage-for-all-enum-members/?CommentID=476879</link><pubDate>Sat, 04 Jul 2009 16:45:13 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/476871-SuppressMessage-for-all-enum-members/?CommentID=476879</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/476879/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Yeah, I thought about doing it in FxCop, but I liked the idea of the code making it clear that the enum members were definitely named that way for a reason.</evnet:previewtext><dc:creator>Bas</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/476879/Trackback.aspx</trackback:ping></item><item><title>Re: Re: Re: SuppressMessage for all enum members.</title><description>&lt;p&gt;Or mark the Fxcop messages as Excluded?&lt;/p&gt;
&lt;p&gt;I'm not a fan of using attributes like this since, as you say, it makes the code messy.&lt;/p&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/476871-SuppressMessage-for-all-enum-members/?CommentID=476878</link><pubDate>Sat, 04 Jul 2009 16:35:20 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/476871-SuppressMessage-for-all-enum-members/?CommentID=476878</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/476878/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Or mark the Fxcop messages as Excluded?
I'm not a fan of using attributes like this since, as you say, it makes the code messy.</evnet:previewtext><dc:creator>W3bbo</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/476878/Trackback.aspx</trackback:ping></item><item><title>Re: Re: SuppressMessage for all enum members.</title><description>&lt;p&gt;Oh hey, that's also not a bad idea. Thanks.&lt;/p&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/476871-SuppressMessage-for-all-enum-members/?CommentID=476875</link><pubDate>Sat, 04 Jul 2009 14:27:19 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/476871-SuppressMessage-for-all-enum-members/?CommentID=476875</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/476875/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Oh hey, that's also not a bad idea. Thanks.</evnet:previewtext><dc:creator>Bas</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/476875/Trackback.aspx</trackback:ping></item><item><title>Re: SuppressMessage for all enum members.</title><description>&lt;p&gt;How about adding the names of the identifiers to the custom dictionary for the project?&lt;/p&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/476871-SuppressMessage-for-all-enum-members/?CommentID=476874</link><pubDate>Sat, 04 Jul 2009 14:15:03 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/476871-SuppressMessage-for-all-enum-members/?CommentID=476874</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/476874/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>How about adding the names of the identifiers to the custom dictionary for the project?</evnet:previewtext><dc:creator>Sven Groot</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/476874/Trackback.aspx</trackback:ping></item></channel></rss>