Enum MethodImplAttributes
Specifies flags for the attributes of a method implementation.
Namespace: System.Reflection
Assembly: mscorlib.dll
Syntax
public enum MethodImplAttributes
Fields
Name | Description |
---|---|
CodeTypeMask | This API supports the product infrastructure and is not intended to be used directly from your code. Specifies flags about code type. |
ForwardRef | 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 | 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 | This API supports the product infrastructure and is not intended to be used directly from your code. Specifies an internal call. |
Managed | 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 | 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 | This API supports the product infrastructure and is not intended to be used directly from your code. Specifies a range check value. |
Native | 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 | 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 | 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 | 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 | 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 | 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 | 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. |