System.Reflection.MethodImplAttributes.cs

ylbtech-System.Reflection.MethodImplAttributes.cs

 

1. Back to top
1、
#regionassembler mscorlib, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089
 // C: \ Program Files (x86) \ Reference Assemblies \ Microsoft \ Framework \ .NETFramework \ v4.6.1 \ mscorlib.dll 
#endregion 

using System.Runtime.InteropServices; 

namespace System.Reflection 
{ 
    // 
    // Abstract:
     //      Specify the flag of the attribute implemented by the method. 
    [ComVisible ( true )]
     public  enum MethodImplAttributes 
    { 
        // 
        // Abstract:
         // The      specified method implementation is located in Microsoft Intermediate Language (MSIL). 
        IL = 0 ,
         //
        // Summary:
         // The      specified method is implemented in managed code. 
        Managed = 0 ,
         // 
        // Summary:
         // The      specified method is implemented as this machine. 
        Native = 1 ,
         // 
        // Summary:
         // The      implementation of the specified method is located in the optimized intermediate language (OPTIL). 
        OPTIL = 2 ,
         // 
        // Summary:
         //      Specify the flag about the code type. 
        CodeTypeMask = 3 ,
         // 
        // Abstract:
         // The      specified method implementation is provided by the runtime. 
        Runtime = 3 ,
        // 
        // Summary:
         //      Specify whether the method is implemented in managed code or unmanaged code. 
        ManagedMask = 4 ,
         // 
        // Summary:
         // The      specified method is implemented in unmanaged code. 
        Unmanaged = 4 ,
         // 
        // Summary:
         // The      specified method cannot be inlined. 
        NoInlining = 8 ,
         // 
        // Summary:
         // The      specified method is undefined. 
        ForwardRef = 16 ,
         // 
        // Summary:
         //     The specified method is a single-threaded method through the text. Static methods (Shared in Visual Basic) are locked on the type, while instance methods are locked on the instance. For this, you can also use the C #
         //      lock statement or Visual Basic SyncLock statement. 
        Synchronized = 32 ,
         // 
        // Summary:
         //      Specify that the method is not optimized by the real-time (JIT) compiler or native code generation when debugging possible code generation issues (see Ngen.exe). 
        NoOptimization = 64 ,
         // 
        // Summary:
         // The      specified method signature is completely exported according to the statement. 
        PreserveSig = 128 ,
         // 
        // Summary:
         // The      specified method should be as inline as possible. 
        AggressiveInlining = 256 ,
         //
        // Summary:
         //      Specify the internal call. 
        InternalCall = 4096 ,
         // 
        // Summary:
         //      Specify the range check value. 
        MaxMethodImplVal = 65535 
    } 
}
2、
2. Back to top
 
3. Back to top
 
4. Back to top
 
5. Back to top
 
 
6. Back to top
 
warn Author: ylbtech
Source: http://ylbtech.cnblogs.com/
This article belongs to the author and blog Park total, welcome to reprint, but without the author's consent declared by this section must be retained, and given the original connection in the apparent position of the article page, otherwise Reserves the right to pursue legal responsibility.

Guess you like

Origin www.cnblogs.com/storebook/p/12677645.html