Esempio n. 1
0
        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);
            }
        }