[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Specifies the details of how a method is implemented. This class cannot be inherited.
Assembly: mscorlib (in mscorlib.dll)
Thetype exposes the following members.
|MethodImplAttribute()()()()||Initializes a new instance of the class.|
|MethodImplAttribute(Int16)||Initializes a new instance of the class with the specified MethodImplOptions value.|
|MethodImplAttribute(MethodImplOptions)||Initializes a new instance of the class with the specified MethodImplOptions value.|
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
You can apply this attribute to methods or constructors.
This attribute lets you customize the configuration of the method or constructor to which it applies by supplying a MethodImplOptions value to its class constructor. The members of the MethodImplOptions enumeration correspond to bit fields in the CorMethodImpl metadata table. This means that information on the attribute cannot be retrieved at run time by calling the method; instead, it is retrieved by calling either the MethodInfo.GetMethodImplementationFlags or the ConstructorInfo.GetMethodImplementationFlags method.