#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();
}
}