MethodCodeType Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Defines how a method is implemented.

Namespace:  System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

[SerializableAttribute]
public enum MethodCodeType

Member nameDescription
ILSpecifies that the method implementation is in Microsoft intermediate language (MSIL).
NativeSpecifies that the method is implemented in native code.
OPTILSpecifies that the method implementation is in optimized intermediate language (OPTIL).
RuntimeSpecifies that the method implementation is provided by the runtime.

Used with MethodImplAttribute.

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

Show: