Example #1
0
        public bool Equals(NumericExpression e)
        {
            if (e == null)
            {
                return(false);
            }

            return(value.Equals(e.value));
        }
Example #2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj.GetType() != typeof(NumericExpression))
            {
                return(false);
            }

            NumericExpression e = obj as NumericExpression;

            return(value.Equals(e.value));
        }