OptimizationLevel Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines the level of optimization of the generated code.
public enum class OptimizationLevel
public enum OptimizationLevel
type OptimizationLevel =
Public Enum OptimizationLevel
- Inheritance
-
OptimizationLevel
Fields
Name | Value | Description |
---|---|---|
Debug | 0 | Disables all optimizations and instruments the generated code to improve debugging experience. The compiler prefers debuggability over performance. Do not use for code running in a production environment.
Corresponds to command line argument /optimize-. |
Release | 1 | Enables all optimizations, debugging experience might be degraded. The compiler prefers performance over debuggability. Use for code running in a production environment.
Corresponds to command line argument /optimize+. |