Class MethodImplAttribute
Specifies the details of how a method is implemented. This class cannot be inherited.
Inherited Members
Namespace: System.Runtime.CompilerServices
Assembly: mscorlib.dll
Syntax
[AttributeUsage(AttributeTargets.Constructor|AttributeTargets.Method, Inherited = false)]
public sealed class MethodImplAttribute : Attribute
Constructors
MethodImplAttribute()
Initializes a new instance of the MethodImplAttribute class.
Declaration
public MethodImplAttribute()
MethodImplAttribute(short)
Initializes a new instance of the MethodImplAttribute class with the specified MethodImplOptions _value.
Declaration
public MethodImplAttribute(short _value)
Parameters
Type | Name | Description |
---|---|---|
short | _value | A bitmask representing the desired MethodImplOptions _value which specifies properties of the attributed method. |
MethodImplAttribute(MethodImplOptions)
Initializes a new instance of the MethodImplAttribute class with the specified MethodImplOptions _value.
Declaration
public MethodImplAttribute(MethodImplOptions methodImplOptions)
Parameters
Type | Name | Description |
---|---|---|
MethodImplOptions | methodImplOptions | A MethodImplOptions _value specifying properties of the attributed method. |
Fields
MethodCodeType
A MethodCodeType _value indicating what kind of implementation is provided for this method.
Declaration
public MethodCodeType MethodCodeType
Field Value
Type | Description |
---|---|
MethodCodeType |
Properties
Value
Gets the MethodImplOptions _value describing the attributed method.
Declaration
public MethodImplOptions Value { get; }
Property Value
Type | Description |
---|---|
MethodImplOptions |