Enum MethodImplAttributes
- Namespace
- System.Reflection
- Assembly
- mscorlib.dll
Specifies flags for the attributes of a method implementation.
public enum MethodImplAttributes
Fields
CodeTypeMask = 3
This API supports the product infrastructure and is not intended to be used directly from your code. Specifies flags about code type.
ForwardRef = 16
This API supports the product infrastructure and is not intended to be used directly from your code. Specifies that the method is not defined.
IL = 0
This API supports the product infrastructure and is not intended to be used directly from your code. Specifies that the method implementation is in Microsoft intermediate language (MSIL).
InternalCall = 4096
This API supports the product infrastructure and is not intended to be used directly from your code. Specifies an internal call.
Managed = 0
This API supports the product infrastructure and is not intended to be used directly from your code. Specifies that the method is implemented in managed code.
ManagedMask = 4
This API supports the product infrastructure and is not intended to be used directly from your code. Specifies whether the method is implemented in managed or unmanaged code.
MaxMethodImplVal = 65535
This API supports the product infrastructure and is not intended to be used directly from your code. Specifies a range check value.
Native = 1
This API supports the product infrastructure and is not intended to be used directly from your code. Specifies that the method implementation is native.
NoInlining = 8
This API supports the product infrastructure and is not intended to be used directly from your code. Specifies that the method cannot be inlined.
OPTIL = 2
This API supports the product infrastructure and is not intended to be used directly from your code. Specifies that the method implementation is in Optimized Intermediate Language (OPTIL).
PreserveSig = 128
This API supports the product infrastructure and is not intended to be used directly from your code. Specifies that the method signature is exported exactly as declared.
Runtime = 3
This API supports the product infrastructure and is not intended to be used directly from your code. Specifies that the method implementation is provided by the runtime.
Synchronized = 32
This API supports the product infrastructure and is not intended to be used directly from your code. Specifies that the method is single-threaded through the body. Static methods (Shared in Visual Basic) lock on the type, whereas instance methods lock on the instance. You can also use the C# lock statement or the Visual Basic SyncLock statement for this purpose.
Unmanaged = 4
This API supports the product infrastructure and is not intended to be used directly from your code. Specifies that the method is implemented in unmanaged code.