有没有办法获取实例的唯一标识符? GetHashCode()指向相同实例的两个引用是相同的。但是,两个不同的实例可以(很容易)获得相同的哈希码: Hashtable hashCodesSeen = new Hashtable(); LinkedList<object> l = new LinkedList<object>(); int n = 0; while (true) { object o = new object(); // Remember objects so that they don't get collected. // This does not make any difference though :( l.AddFirst(o); int hashCode = o.GetHashCode(); n++; if (hashCodesSeen.ContainsKey(hashCode)) …