MethodCodeType MethodCodeType MethodCodeType MethodCodeType Enum

定义

定义如何实现方法。Defines how a method is implemented.

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

此 API 支持产品基础结构,不能在代码中直接使用。

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

字段

IL IL IL IL 0

指定方法实现位于 Microsoft 中间语言 (MSIL) 中。Specifies that the method implementation is in Microsoft intermediate language (MSIL).

Native Native Native Native 1

指定此方法是用本机代码实现的。Specifies that the method is implemented in native code.

OPTIL OPTIL OPTIL OPTIL 2

指定此方法实现是用优化中间语言 (OPTIL) 编写的。Specifies that the method implementation is in optimized intermediate language (OPTIL).

Runtime Runtime Runtime Runtime 3

指定方法实现由运行时提供。Specifies that the method implementation is provided by the runtime.

注解

MethodImplAttribute一起使用。Used with MethodImplAttribute.

System.runtime.compilerservices 中的类仅供编译器编写器使用。The classes in System.Runtime.CompilerServices are for compiler writers use only.

适用于