private bool Equals(NamedInt other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(Value, other.Value)); }
public int CompareTo(NamedInt other) { return(Value - other.Value); }