public override bool Equals(object o) { AllocNode a = o as AllocNode; if (a == null) return false; if (a.type != type || a.bt_len != bt_len) return false; for (int i = 0; i < bt_len; i ++) if (a.bt [i] != bt [i]) return false; return true; }