[Mono-list] Diagnostic Messages
Jonathan Pryor
jonpryor@vt.edu
27 May 2002 15:30:08 -0400
[Conditional] can't be applied to getter methods.
The C# programming language requires that methods marked with
[Conditional] have a return value of type `void'. Since getters return
non-`void' values, they can't be marked [Conditional].
See:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csspec/html/vclrfcsharpspec_17_4_2.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cscomp/html/vctbsCompilerErrorSC0578.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cscomp/html/vcerrCompilerErrorCS0243.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cscomp/html/vcerrCompilerErrorSC0629.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cscomp/html/vctbsCompilerErrorSC0577.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cscomp/html/vctbsCompilerErrorSC0582.asp
- Jon
On Mon, 2002-05-27 at 15:08, Miguel de Icaza wrote:
> It's in the documentation. See the remarks and notes for classes
> System.Diagnostics.ConditionalAttribute,
> System.Diagnostics.DefaultTraceListener, System.Diagnostics.Debug and
> System.Diagnostics.Trace.
Thanks a lot for the information. So it seems that i only have to
disable calls to Debug and Trace.
Disabling property access is a bit harder. I think I can disable
"setters", but "getters" might be a lot harder. I still need to think
about this a bit more.
By default they are both off in MCS. I will commit the code to CVS in a
moment.
Miguel