System.Object.cs

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

using System.Runtime;
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
using System.Security;

namespace System
{
    //
    // 摘要:
    //     支持 .NET Framework 类层次结构中的所有类,并为派生类提供低级别服务。 这是 .NET Framework 中所有类的最终基类;它是类型层次结构的根。
    //     若要浏览此类型的.NET Framework 源代码,请参阅Reference Source。
    [ClassInterface(ClassInterfaceType.AutoDual)]
    [ComVisible(true)]
    public class Object
    {
        //
        // 摘要:
        //     初始化 System.Object 类的新实例。
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
        public Object();

        //
        // 摘要:
        //     在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        ~Object();

        //
        // 摘要:
        //     确定指定的对象实例是否被视为相等。
        //
        // 参数:
        //   objA:
        //     要比较的第一个对象。
        //
        //   objB:
        //     要比较的第二个对象。
        //
        // 返回结果:
        //     如果对象被视为相等,则为 true,否则为 false。 如果 objA 和 objB 均为 null,此方法将返回 true。
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static bool Equals(Object objA, Object objB);
        //
        // 摘要:
        //     确定指定的 System.Object 实例是否是相同的实例。
        //
        // 参数:
        //   objA:
        //     要比较的第一个对象。
        //
        //   objB:
        //     要比较的第二个对象。
        //
        // 返回结果:
        //     true如果objA是相同的实例作为objB或如果两者均null; 否则为false。
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static bool ReferenceEquals(Object objA, Object objB);
        //
        // 摘要:
        //     确定指定的对象是否等于当前对象。
        //
        // 参数:
        //   obj:
        //     要与当前对象进行比较的对象。
        //
        // 返回结果:
        //     如果指定的对象等于当前对象,则为 true,否则为 false。
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public virtual bool Equals(Object obj);
        //
        // 摘要:
        //     作为默认哈希函数。
        //
        // 返回结果:
        //     当前对象的哈希代码。
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public virtual int GetHashCode();
        //
        // 摘要:
        //     获取当前实例的 System.Type。
        //
        // 返回结果:
        //     当前实例的准确运行时类型。
        [SecuritySafeCritical]
        public Type GetType();
        //
        // 摘要:
        //     返回表示当前对象的字符串。
        //
        // 返回结果:
        //     表示当前对象的字符串。
        public virtual string ToString();
        //
        // 摘要:
        //     创建当前 System.Object 的浅表副本。
        //
        // 返回结果:
        //     当前 System.Object 的浅表副本。
        [SecuritySafeCritical]
        protected Object MemberwiseClone();
    }
}
2、
2.返回顶部
 
3.返回顶部
 
4.返回顶部
 
5.返回顶部
 
 
6.返回顶部
 
warn 作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
原文地址:https://www.cnblogs.com/storebook/p/12603847.html