[Mono-list] Re: PInvoke:TNG

Miguel de Icaza miguel@ximian.com
29 Oct 2001 14:52:18 -0500

> Instead of covering it up with command line switches, why not go the 
> opposite route and make it explicit through C# attributes?
> Sometimes a warning really isn't fixing anything (especially if it's 
> prototype, in flux, or experimental code) and the workaround to remove the 
> warning has other unfortunate side effects.
> Annotating the class, function, or assembly with a line like:
> [Pragma("NoWarn", "C0021")]

The problem is that these are errors reported by the Microsoft C#
compiler, without the source code, we cant make the compiler do this.

We will be able to do this with MCS, but MCS can not compile the class
libraries yet.