Mono Class Library: System.Runtime.CompilerServices Namespace

System.Runtime.CompilerServices.MethodImplAttribute Class

Specifies the details of how a method is implemented. [Edit]

See Also: MethodImplAttribute Members

System.Object
     System.Attribute
          System.Runtime.CompilerServices.MethodImplAttribute

[System.AttributeUsage(System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.All, Inherited=false)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class MethodImplAttribute : Attribute

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Remarks

Compilers are required to not preserve this type in metadata as a custom attribute. Instead, compilers are required to emit it directly in the file format, as described in Partition II of the CLI Specification. Metadata consumers, such as the Reflection API, are required to retrieve this data from the file format and return it as if it were a custom attribute.

Note: This class uses the System.Runtime.CompilerServices.MethodImplOptions enumeration to describe the implementation details of methods. For most languages, it is recommended that the notions of "forward" and "synchronized" be attached to methods using language syntax instead of custom attributes.

[Edit]

Requirements

Namespace: System.Runtime.CompilerServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0