public override bool Equals(System.Object obj) { if (obj == null) { return(false); } Index2 p = (Index2)obj; if ((System.Object)p == null) { return(false); } bool r1 = this.CheckContain(p.p1) && this.CheckContain(p.p2); bool r2 = p.CheckContain(this.p1) && p.CheckContain(this.p2); return(r1 && r2); }