public bool Equals(NumericExpression e) { if (e == null) { return(false); } return(value.Equals(e.value)); }
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)); }