CompilationRelaxations 枚举

定义

指定一些参数,这些参数控制由公共语言运行时的实时 (JIT) 编译器生成的代码的严格性。Specifies parameters that control the strictness of the code generated by the common language runtime's just-in-time (JIT) compiler.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class CompilationRelaxations
[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum CompilationRelaxations
type CompilationRelaxations = 
Public Enum CompilationRelaxations
继承
CompilationRelaxations
属性

字段

NoStringInterning 8

将程序集标记为不需要字符串暂留。Marks an assembly as not requiring string-literal interning. 在应用程序域中,常用语言运行时会为每个唯一字符串字面量创建一个字符串对象,而不是创建多个副本。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.

注解

使用具有属性的CompilationRelaxations枚举 CompilationRelaxationsAttributeUse the CompilationRelaxations enumeration with the CompilationRelaxationsAttribute attribute.

适用于