Share via


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)

Syntax

'Declaration
<SerializableAttribute> _
Public Enumeration MethodCodeType
[SerializableAttribute]
public enum MethodCodeType
[SerializableAttribute]
public enum class MethodCodeType
[<SerializableAttribute>]
type MethodCodeType
public enum MethodCodeType

Members

Member name Description
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.

Remarks

Used with MethodImplAttribute.

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

See Also

Reference

System.Runtime.CompilerServices Namespace