System.Reflection.MethodImplAttributes.cs

ylbtech-System.Reflection.MethodImplAttributes.cs
1.返回顶部
1、
#region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// C:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.6.1mscorlib.dll
#endregion

using System.Runtime.InteropServices;

namespace System.Reflection
{
    //
    // 摘要:
    //     指定方法实现的属性的标志。
    [ComVisible(true)]
    public enum MethodImplAttributes
    {
        //
        // 摘要:
        //     指定方法实现位于 Microsoft 中间语言 (MSIL) 中。
        IL = 0,
        //
        // 摘要:
        //     指定方法在托管代码中实现。
        Managed = 0,
        //
        // 摘要:
        //     指定方法实现为本机。
        Native = 1,
        //
        // 摘要:
        //     指定方法实现位于优化中间语言 (OPTIL) 中。
        OPTIL = 2,
        //
        // 摘要:
        //     指定有关代码类型的标志。
        CodeTypeMask = 3,
        //
        // 摘要:
        //     指定方法实现由运行时提供。
        Runtime = 3,
        //
        // 摘要:
        //     指定方法是在托管代码还是非托管代码中实现。
        ManagedMask = 4,
        //
        // 摘要:
        //     指定方法在非托管代码中实现。
        Unmanaged = 4,
        //
        // 摘要:
        //     指定方法不能内联。
        NoInlining = 8,
        //
        // 摘要:
        //     指定方法是未定义的。
        ForwardRef = 16,
        //
        // 摘要:
        //     指定方法是通过正文的单线程方法。 静态方法(在 Visual Basic 中为 Shared)在类型上锁定,而实例方法在实例上锁定。 为此,也可以使用 C#
        //     lock 语句或 Visual Basic SyncLock 语句。
        Synchronized = 32,
        //
        // 摘要:
        //     指定在调试可能的代码生成问题时,方法不由实时 (JIT) 编译器或本机代码生成优化(请参阅 Ngen.exe)。
        NoOptimization = 64,
        //
        // 摘要:
        //     指定方法签名是完全按照声明导出的。
        PreserveSig = 128,
        //
        // 摘要:
        //     指定方法应尽可能内联。
        AggressiveInlining = 256,
        //
        // 摘要:
        //     指定内部调用。
        InternalCall = 4096,
        //
        // 摘要:
        //     指定范围检查值。
        MaxMethodImplVal = 65535
    }
}
2、
2.返回顶部
 
3.返回顶部
 
4.返回顶部
 
5.返回顶部
 
 
6.返回顶部
 
warn 作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
原文地址:https://www.cnblogs.com/storebook/p/12677645.html