views:

715

answers:

2

Is there a way in code to disable certain warnings in C# alike #pragma warning(cmd: warningsNo) in c++?

+2  A: 

Yes. See the MSDN for the complete reference.

Razzie
+2  A: 

Almost precisely the same directive.

Anton Gogolev