Compiler Error Level

Description

The CompilerErrorLevel enumeration represents the level of detail provided by the C# compiler when generating error messages. This enumeration is used to control the verbosity of the compiler output, allowing developers to tailor the error reporting to their specific needs.

Value Field

Value An enumeration constant indicating the compiler error level.

Enumeration Constants

Error Represents the detailed error level. This level provides comprehensive information about the error, including the file name, line number, and error code.
Warning Represents the warning level. This level indicates potential issues that may not cause a compilation error but should be addressed to improve code quality or performance.
Info Represents the informational level. This level provides general information about the compilation process, such as the number of compiled assemblies.

Usage

The CompilerErrorLevel enumeration is primarily used within the C# compiler to control the output generated during compilation. It can be set using compiler options or through code reflection. For more detailed information, refer to the following MSDN documentation:

Compiler Options