Eric covers another new C# Whidbey (VS 2005) feature

Not a long post (I’ve included it all below), but useful nonetheless

C# Featurette #2 – Inline Warning Control

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

Comments on this feature? Click on the “Featurette” link above and tell Eric what you think!

Author: Duncan Mackenzie

I'm the Developer Lead for the Channel 9 team, formerly worked on MSDN as a developer, content strategist and author.

Leave a Reply