Mono Class Library: System.Runtime.CompilerServices.CompilationRelaxationsAttribute Overview | Members

System.Runtime.CompilerServices.CompilationRelaxationsAttribute Constructor

Constructs and initializes a new instance of the System.Runtime.CompilerServices.CompilationRelaxationsAttribute class with the specified System.Runtime.CompilerServices.CompilationRelaxations value. [Edit]

public CompilationRelaxationsAttribute (int relaxations)

Parameters

relaxations
A bitwise OR combination of enumeration values from System.Runtime.CompilerServices.CompilationRelaxations that specifies the desired ordering of instruction checking and string interning. [Edit]

Exceptions

TypeReason
ArgumentExceptionFor some xxx, relaxations has both Strictxxx and Relaxedxx set, or has both StringInterning and NoStringInterning set. [Edit]

Remarks

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.) [Edit]

Requirements

Namespace: System.Runtime.CompilerServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0