<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>C# Featurette #2 - Inline Warning Control</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx</link><description>Another feature that we added for Whidbey is the ability to selectively disable warnings within your code. For example: #pragma warning disable 135 // Disable warning CS135 in this block #pragma warning restore 135</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: C# Featurette #2 - Inline Warning Control</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#112039</link><pubDate>Tue, 13 Apr 2004 05:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:112039</guid><dc:creator>Jason G</dc:creator><description>Cool feature.  Not sure where I would use it, except maybe to disable warnings about XML documentation not being on a public member for a few autogenerated classes. *cough*XSD.exe*cough*&lt;br&gt;&lt;br&gt;I don't suppose there is a way to selectively choose which exceptions the IDE will &amp;quot;break when thrown&amp;quot; on a per assembly/class/file basis using pragmas is there?&lt;br&gt;&lt;br&gt;My example is our collab partners have some code that throws 30-40 FileNotFoundExceptions that I would love to be able to ignore since it's &amp;quot;handled&amp;quot;, but I would still like to break when thrown for that exception with all the rest of our code.&lt;br&gt;&lt;br&gt;</description></item><item><title>Eric covers another new C# Whidbey (VS 2005) feature</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#112075</link><pubDate>Tue, 13 Apr 2004 10:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:112075</guid><dc:creator>Code/Tea/Etc...</dc:creator><description /></item><item><title>re: C# Featurette #2 - Inline Warning Control</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#112096</link><pubDate>Tue, 13 Apr 2004 08:42:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:112096</guid><dc:creator>Nic Wise</dc:creator><description>Good feature, but I think its general use should be discouraged - warnings are GOOD, and you should indever to fix your code, not just block them out....&lt;br&gt;&lt;br&gt;:)&lt;br&gt;&lt;br&gt;But, you can't always :)</description></item><item><title>re: DataSetのXMLコメント</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#112105</link><pubDate>Tue, 13 Apr 2004 12:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:112105</guid><dc:creator>中の技術日誌</dc:creator><description>re: DataSet?XML????</description></item><item><title>re: C# Featurette #2 - Inline Warning Control</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#112111</link><pubDate>Tue, 13 Apr 2004 09:26:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:112111</guid><dc:creator>Thomas Eyde</dc:creator><description>So when can I disable compiler errors like missing type casts? Those are not really not errors as the compiler will bark at truly incompatible type casts. Note: I am talking about casting, not converting.</description></item><item><title>re: C# Featurette #2 - Inline Warning Control</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#112112</link><pubDate>Tue, 13 Apr 2004 09:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:112112</guid><dc:creator>Mike Dimmick</dc:creator><description>I'll definitely be using this feature for a few cases where I'll never use some features of a class I've declared. &lt;br&gt;&lt;br&gt;For example, I have some interfaces which contain events. Some of the implementations of a particular interface will never fire those events, so the compiler generates a warning.&lt;br&gt;&lt;br&gt;Now I come to think of it, I probably should have used abstract classes rather than interfaces.</description></item><item><title>re: C# Featurette #2 - Inline Warning Control</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#112175</link><pubDate>Tue, 13 Apr 2004 12:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:112175</guid><dc:creator>Omer van Kloeten</dc:creator><description>I'd go and put a big ass label on it saying that it is recommended for you everyone to add an #if DEBUG or whatnot to this. There are reasons warnings are thrown.&lt;br&gt;For instance:&lt;br&gt;&lt;br&gt;#if DEBUG&lt;br&gt;#pragma warning disable 135&lt;br&gt;#endif&lt;br&gt;&lt;br&gt;  // Disable warning CS135 in this block&lt;br&gt;&lt;br&gt;#if DEBUG&lt;br&gt;#pragma warning restore 135&lt;br&gt;#endif&lt;br&gt;&lt;br&gt;This way, in the release build, someone would _have_ to take notice.</description></item><item><title>re: C# Featurette #2 - Inline Warning Control</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#112414</link><pubDate>Tue, 13 Apr 2004 17:32:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:112414</guid><dc:creator>Paul Norton</dc:creator><description>Why is the syntax different than the same pragma for the C++ compiler? &lt;br&gt;&lt;br&gt;The syntax I'm accustomed to looks like this:&lt;br&gt;&amp;lt;code&amp;gt;&lt;br&gt;#pragma warning(enable : 4244)&lt;br&gt;&amp;lt;/code&amp;gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>C# Featurette Suggestion</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#113092</link><pubDate>Wed, 14 Apr 2004 17:55:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:113092</guid><dc:creator>Something Clever</dc:creator><description>I suggest that Microsoft could extend the syntax of C# to allow checked and unchecked wherever unsafe is allowed.</description></item><item><title>Whidbey C# Featurette</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#113351</link><pubDate>Wed, 14 Apr 2004 22:59:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:113351</guid><dc:creator>Christian Nagel's OneNotes</dc:creator><description /></item><item><title>New and Notable 45</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#113782</link><pubDate>Thu, 15 Apr 2004 15:30:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:113782</guid><dc:creator>Sam Gentile's Blog</dc:creator><description /></item><item><title>re: C# Featurette #2 - Inline Warning Control</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#117714</link><pubDate>Wed, 21 Apr 2004 20:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:117714</guid><dc:creator>Clinton Pierce</dc:creator><description>Hooray!&lt;br&gt;&lt;br&gt;The place I most want to use this is the stupid requirement to have XML comments on members of a public enumeration.  For things like:&lt;br&gt;&lt;br&gt;   /// &amp;lt;summary&amp;gt;&lt;br&gt;   /// Marital Status &lt;br&gt;   /// (Do not use as Filing Status)&lt;br&gt;   /// &amp;lt;/summary&amp;gt;&lt;br&gt;   public enum MaritalStatus&lt;br&gt;   {&lt;br&gt;     Single, &lt;br&gt;     Married, &lt;br&gt;     Divorced,&lt;br&gt;     Widowed&lt;br&gt;   };&lt;br&gt;&lt;br&gt;Where we'd get 4 warnings because C#'s compiler wants me to put an XML comment to explain the difference between &amp;quot;Married&amp;quot; and &amp;quot;Divorced&amp;quot;, etc..&lt;br&gt;</description></item><item><title>re: C# Featurette #2 - Inline Warning Control</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#133832</link><pubDate>Tue, 18 May 2004 05:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:133832</guid><dc:creator>Victor Boctor</dc:creator><description>I think this feature is useful.  I am generally against disabling warnings, however, in this case I added to my project (which requires XML documentation) a class that I downloaded from the Internet.  The issue is that this class did not provide such documentation.  At the meantime, I didn't want to do a lot of modifications to the class in order to make it easy to get upgrades in the future.  In the meantime, what I will do now is to send the author a comment to support provide the XML documentation to avoid this issue.&lt;br&gt;&lt;br&gt;Like any other tool, it can be useful when used appropriately, so irrespective of the exact scenarios, I think it makes sense to have this feature available.</description></item><item><title>re: C# Featurette #2 - Inline Warning Control</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#136304</link><pubDate>Thu, 20 May 2004 23:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:136304</guid><dc:creator>Brian</dc:creator><description>Great! One of my classes has properties whose values are set only through reflection, and the compiler is always giving me &amp;quot;warning CS0649: Field 'CommandLineParser.ParserTest.PrivateInstanceArg' is never assigned to, and will always have its default value null.' In this case the warning is essentially wrong, but the compiler can't tell that. I'd love to disable those warnings.</description></item><item><title>MBA</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#324795</link><pubDate>Sat, 18 Dec 2004 18:57:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:324795</guid><dc:creator>MBA</dc:creator><description>Helpful For MBA Fans.</description></item><item><title>Re:</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#333943</link><pubDate>Tue, 28 Dec 2004 13:02:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:333943</guid><dc:creator>RebelGeekz </dc:creator><description>[&lt;a target="_new" href="http://itpeixun.51.net/"&gt;http://itpeixun.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://aissl.51.net/"&gt;http://aissl.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz003.freewebpage.org/"&gt;http://kukuxz003.freewebpage.org/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz001.51.net/"&gt;http://kukuxz001.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz003.51.net/"&gt;http://kukuxz003.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz005.51.net/"&gt;http://kukuxz005.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz002.51.net/"&gt;http://kukuxz002.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz004.freewebpage.org/"&gt;http://kukuxz004.freewebpage.org/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz007.51.net/"&gt;http://kukuxz007.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz001.freewebpage.org/"&gt;http://kukuxz001.freewebpage.org/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz006.51.net/"&gt;http://kukuxz006.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz002.freewebpage.org/"&gt;http://kukuxz002.freewebpage.org/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz004.51.net/"&gt;http://kukuxz004.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz008.51.net/"&gt;http://kukuxz008.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz009.51.net/"&gt;http://kukuxz009.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz005.freewebpage.org/"&gt;http://kukuxz005.freewebpage.org/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz006.freewebpage.org/"&gt;http://kukuxz006.freewebpage.org/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz007.freewebpage.org/"&gt;http://kukuxz007.freewebpage.org/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz009.freewebpage.org/"&gt;http://kukuxz009.freewebpage.org/&lt;/a&gt;]</description></item><item><title> Eric Gunnerson s C Compendium C Featurette 2 Inline Warning Control | Green Tea Fat Burner</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#9706872</link><pubDate>Mon, 08 Jun 2009 05:35:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9706872</guid><dc:creator> Eric Gunnerson s C Compendium C Featurette 2 Inline Warning Control | Green Tea Fat Burner</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://greenteafatburner.info/story.php?id=4858"&gt;http://greenteafatburner.info/story.php?id=4858&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Eric Gunnerson s C Compendium C Featurette 2 Inline Warning Control | Quick Diets</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#9715606</link><pubDate>Tue, 09 Jun 2009 14:33:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9715606</guid><dc:creator> Eric Gunnerson s C Compendium C Featurette 2 Inline Warning Control | Quick Diets</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://quickdietsite.info/story.php?id=14364"&gt;http://quickdietsite.info/story.php?id=14364&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Eric Gunnerson s C Compendium C Featurette 2 Inline Warning Control | storage bench</title><link>http://blogs.msdn.com/ericgu/archive/2004/04/12/112032.aspx#9749371</link><pubDate>Sun, 14 Jun 2009 12:59:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9749371</guid><dc:creator> Eric Gunnerson s C Compendium C Featurette 2 Inline Warning Control | storage bench</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://thestoragebench.info/story.php?id=10834"&gt;http://thestoragebench.info/story.php?id=10834&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>