Constructs and initializes a new instance of the System.Runtime.CompilerServices.CompilationRelaxationsAttribute class with the specified System.Runtime.CompilerServices.CompilationRelaxations value.
- relaxations
- A bitwise OR combination of enumeration values from System.Runtime.CompilerServices.CompilationRelaxations that specifies the desired ordering of instruction checking and string interning.
Type Reason ArgumentException For some xxx, relaxations has both Strictxxx and Relaxedxx set, or has both StringInterning and NoStringInterning set.
The relaxations flags describe whether to change exception strictness, or string interning. For exceptions of kind xxx, setting Strictxxx makes those exceptions have strict ordering, and setting Relaxedxxx makes those exceptions have relaxed ordering. Setting neither flag for xxx causes no change for exceptions of kind xxx; i.e., the strictness/relaxation for xxx defaults to what it would be if the attribute were not present. See System.Runtime.CompilerServices.CompilationRelaxations for a list of the xxx choices.)
Namespace: System.Runtime.CompilerServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0