System.Runtime.CompilerServices.CompilationRelaxations.NoStringInterning Field

Marks an assembly as not requiring string-literal interning.

Syntax

CompilationRelaxations NoStringInterning

Remarks

In an application domain, the common language runtime creates one string object for each unique string literal, rather than making multiple copies. This behavior, called string interning, internally requires building auxiliary tables that consume memory resources.

Requirements

Namespace: System.Runtime.CompilerServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0