public int CompareTo(NamedDouble other) { if (Value < other.Value) { return(-1); } if (Value > other.Value) { return(1); } return(0); }
public bool Equals(NamedDouble other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(Value, other.Value)); }