Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual C#
C# Reference
 #pragma
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
C# Language Reference
#pragma (C# Reference)

Updated: July 2008

#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.

Date

History

Reason

July 2008

Corrected text per customer suggestions.

Content bug fix.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker