Example #1
0
        public override bool Equals(Object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (GetType() != obj.GetType())
            {
                return(false);
            }
            var other = (DateType)obj;

            if (dateCodec == null)
            {
                if (other.dateCodec != null)
                {
                    return(false);
                }
            }
            else if (!dateCodec.Equals(other.dateCodec))
            {
                return(false);
            }
            if (dateFormatter == null)
            {
                if (other.dateFormatter != null)
                {
                    return(false);
                }
            }
            else if (!dateFormatter.Equals(other.dateFormatter))
            {
                return(false);
            }
            return(true);
        }
Example #2
0
 internal bool Equals(Scalar other)
 {
     return(name.Equals(other.name) && type.Equals(other.type) && typeCodec.Equals(other.typeCodec) && operator_Renamed.Equals(other.operator_Renamed) && operatorCodec.Equals(other.operatorCodec) && initialValue.Equals(other.initialValue) && dictionary.Equals(other.dictionary));
 }