/// <summary> /// Checks if another constant is greater than this instance. /// </summary> /// <param name="other">The other instance.</param> protected virtual bool IsConstantGreater(INumberLanguageConstant other) { Debug.Assert(other != null); return(Value > other.Value); }
/// <summary> /// Checks if another constant is equal to this instance. /// </summary> /// <param name="other">The other instance.</param> protected virtual bool IsConstantEqual(INumberLanguageConstant other) { Debug.Assert(other != null); return(Value.Equals(other.Value)); }