Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

#pragma (C# Reference)

#pragma gives the compiler special instructions for the compilation of the file in which it appears. The instructions must be supported by the compiler. In other words, you cannot use #pragma to create custom preprocessing instructions. The Microsoft C# compiler supports the following two #pragma instructions:

#pragma warning (C# Reference)

#pragma checksum (C# Reference)

#pragma pragma-name pragma-arguments
pragma-name

The name of a recognized pragma.

pragma-arguments

Pragma-specific arguments.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.