private bool Equals(NamedLong other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(Value, other.Value)); }
public int CompareTo(NamedLong other) { var result = Value - other.Value; return((result < 0) ? -1 : (result == 0 ? 0 : 1)); }