System.Runtime.CompilerServices.CompilationRelaxations Enum

[Flags]public enum CompilationRelaxations

Base Types

Object
  ValueType
    Enum
      CompilationRelaxations

Assembly

mscorlib

Library

RuntimeInfrastructure

Summary

Indicates whether instruction checking is strictly ordered or relaxed, and whether strings are interned. The flags come in complementary pairs. Setting neither flag of a pair indicates that the corresponding characteristic should be left unchanged. Setting both bits is an error that is detected by the constructor for CompilationRelaxationsAttribute.

Attributes

FlagsAttribute

See Also

System.Runtime.CompilerServices Namespace

Members

CompilationRelaxations Fields

CompilationRelaxations.NoStringInterning Field
CompilationRelaxations.RelaxedArrayExceptions Field
CompilationRelaxations.RelaxedInvalidCastException Field
CompilationRelaxations.RelaxedNullReferenceException Field
CompilationRelaxations.RelaxedOverflowExceptions Field
CompilationRelaxations.StrictArrayExceptions Field
CompilationRelaxations.StrictInvalidCastException Field
CompilationRelaxations.StrictNullReferenceException Field
CompilationRelaxations.StrictOverflowExceptions Field
CompilationRelaxations.StringInterning Field
CompilationRelaxations.value__ Field


CompilationRelaxations.NoStringInterning Field

NoStringInterning = 0x8

Summary

Indicates that literal strings are not interned; currently only noticed when set for Assemblies.

See Also

System.Runtime.CompilerServices.CompilationRelaxations Enum, System.Runtime.CompilerServices Namespace

CompilationRelaxations.RelaxedArrayExceptions Field

RelaxedArrayExceptions = 0x200

Summary

Indicates that instruction checking for IndexOutOfRangeException, RankException, and ArrayTypeMismatchException is not strictly ordered (that is, it is relaxed).

See Also

System.Runtime.CompilerServices.CompilationRelaxations Enum, System.Runtime.CompilerServices Namespace

CompilationRelaxations.RelaxedInvalidCastException Field

RelaxedInvalidCastException = 0x80

Summary

Indicates that instruction checking for InvalidCastException is not strictly ordered (that is, it is relaxed).

See Also

System.Runtime.CompilerServices.CompilationRelaxations Enum, System.Runtime.CompilerServices Namespace

CompilationRelaxations.RelaxedNullReferenceException Field

RelaxedNullReferenceException = 0x20

Summary

Indicates that instruction checking for NullReferenceException and access violations is not strictly ordered (that is, it is relaxed).

See Also

System.Runtime.CompilerServices.CompilationRelaxations Enum, System.Runtime.CompilerServices Namespace

CompilationRelaxations.RelaxedOverflowExceptions Field

RelaxedOverflowExceptions = 0x800

Summary

Indicates that instruction checking for OverflowException and DivideByZeroException is not strictly ordered (that is, it is relaxed).

See Also

System.Runtime.CompilerServices.CompilationRelaxations Enum, System.Runtime.CompilerServices Namespace

CompilationRelaxations.StrictArrayExceptions Field

StrictArrayExceptions = 0x100

Summary

Indicates that instruction checking for IndexOutOfRangeException, RankException, and ArrayTypeMismatchException is strictly ordered.

See Also

System.Runtime.CompilerServices.CompilationRelaxations Enum, System.Runtime.CompilerServices Namespace

CompilationRelaxations.StrictInvalidCastException Field

StrictInvalidCastException = 0x40

Summary

Indicates that instruction checking for InvalidCastException is strictly ordered.

See Also

System.Runtime.CompilerServices.CompilationRelaxations Enum, System.Runtime.CompilerServices Namespace

CompilationRelaxations.StrictNullReferenceException Field

StrictNullReferenceException = 0x10

Summary

Indicates that instruction checking for NullReferenceException and access violations is strictly ordered.

See Also

System.Runtime.CompilerServices.CompilationRelaxations Enum, System.Runtime.CompilerServices Namespace

CompilationRelaxations.StrictOverflowExceptions Field

StrictOverflowExceptions = 0x400

Summary

Indicates that instruction checking for OverflowException and DivideByZeroException is strictly ordered.

See Also

System.Runtime.CompilerServices.CompilationRelaxations Enum, System.Runtime.CompilerServices Namespace

CompilationRelaxations.StringInterning Field

StringInterning = 0x4

Summary

Indicates that literal strings are interned.

See Also

System.Runtime.CompilerServices.CompilationRelaxations Enum, System.Runtime.CompilerServices Namespace

CompilationRelaxations.value__ Field

value__

See Also

System.Runtime.CompilerServices.CompilationRelaxations Enum, System.Runtime.CompilerServices Namespace