public override bool Equals(System.Object o) { if (o is XPathBinaryOpExpr) { XPathBinaryOpExpr x = (XPathBinaryOpExpr)o; return(a.Equals(x.a) && b.Equals(x.b)); } else { return(false); } }
public Boolean Equals(Object o) { if (o is XPathBinaryOpExpr) { XPathBinaryOpExpr x = (XPathBinaryOpExpr)o; return(a.Equals(x.a) && b.Equals(x.b)); } else { return(false); } }
public Boolean equals(Object o) { if (o is XPathFilterExpr) { XPathFilterExpr fe = (XPathFilterExpr)o; ArrayList a = new ArrayList(); for (int i = 0; i < predicates.Length; i++) { a.Add(predicates[i]); } ArrayList b = new ArrayList(); for (int i = 0; i < fe.predicates.Length; i++) { b.Add(fe.predicates[i]); } return(x.Equals(fe.x) && ExtUtil.vectorEquals(a, b)); } else { return(false); } }
public override bool Equals(System.Object o) { if (o is XPathFilterExpr) { XPathFilterExpr fe = (XPathFilterExpr)o; System.Collections.ArrayList a = System.Collections.ArrayList.Synchronized(new System.Collections.ArrayList(10)); for (int i = 0; i < predicates.Length; i++) { a.Add(predicates[i]); } System.Collections.ArrayList b = System.Collections.ArrayList.Synchronized(new System.Collections.ArrayList(10)); for (int i = 0; i < fe.predicates.Length; i++) { b.Add(fe.predicates[i]); } return(x.Equals(fe.x) && ExtUtil.vectorEquals(a, b)); } else { return(false); } }