System.Runtime.CompilerServices.MethodCodeType Enumeration

Defines how a method is implemented.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public enum MethodCodeType

Remarks

Used with System.Runtime.CompilerServices.MethodImplAttribute.

The classes in System.Runtime.CompilerServices are for compiler writers use only.

Members

Member NameDescription
IL

Specifies that the method implementation is in Microsoft intermediate language (MSIL).

Native

Specifies that the method is implemented in native code.

OPTIL

Specifies that the method implementation is in optimized intermediate language (OPTIL).

Runtime

Specifies that the method implementation is provided by the runtime.

Requirements

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