C#怎么判断2个对象引用的是同一个地址
[Description("This is a base class.")]
class Base { }
class Program{
static void Main(string[] args){
Base objBase = new Base();
Base objA = objBase;
Base objB = objBase;
// 用根基类的ReferenceEquals静态方法可以判断两个对象的引用是否相等
Console.WriteLine(Object.ReferenceEquals(objA,objB));
Console.ReadKey(true);
}
}