Exemplo n.º 1
0
        public override bool Equals(object o)
        {
            if (o.GetType() != this.GetType())
            {
                return(false);
            }
            ValueExp rhs = (ValueExp)o;

            return(rhs.dt == this.dt && dt.SameValue(this.value, rhs.value));
        }
        public override bool SameValue(object o1, object o2)
        {
            object[] v1 = (object[])o1;
            object[] v2 = (object[])o2;

            if (v1.Length != v2.Length)
            {
                return(false);
            }
            for (int i = v1.Length - 1; i >= 0; i--)
            {
                if (!itemType.SameValue(v1[i], v2[i]))
                {
                    return(false);
                }
            }
            return(true);
        }