Class MethodImplAttribute
- Namespace
- System.Runtime.CompilerServices
- Assembly
- mscorlib.dll
Specifies the details of how a method is implemented. This class cannot be inherited.
[AttributeUsage(AttributeTargets.Constructor|AttributeTargets.Method, Inherited = false)]
public sealed class MethodImplAttribute : Attribute
- Inheritance
-
MethodImplAttribute
- Inherited Members
- Extension Methods
Constructors
MethodImplAttribute()
Initializes a new instance of the MethodImplAttribute class.
public MethodImplAttribute()
MethodImplAttribute(short)
Initializes a new instance of the MethodImplAttribute class with the specified MethodImplOptions _value.
public MethodImplAttribute(short _value)
Parameters
_value
shortA 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.
public MethodImplAttribute(MethodImplOptions methodImplOptions)
Parameters
methodImplOptions
MethodImplOptionsA MethodImplOptions _value specifying properties of the attributed method.
Fields
MethodCodeType
A MethodCodeType _value indicating what kind of implementation is provided for this method.
public MethodCodeType MethodCodeType
Field Value
Properties
Value
Gets the MethodImplOptions _value describing the attributed method.
public MethodImplOptions Value { get; }