#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

#pragma checksum

Syntax

#pragma pragma-name pragma-arguments  

Parameters

pragma-name
The name of a recognized pragma.

pragma-arguments
Pragma-specific arguments.

See Also

C# Reference
C# Programming Guide
C# Preprocessor Directives
#pragma warning
#pragma checksum