int CompareValues(ValueWithAddressIndexKey <TValue> other) { if (this.V == null) { if (other.V == null) { return(0); } return(-1); } else if (other.V == null) { return(1); } return(((IComparable)V).CompareTo(other.V)); }
int CompareValues(ValueWithAddressIndexKey <TValue> other) { if (this.V == null) { if (other.V == null) { return(0); } return(-1); } else if (other.V == null) { return(1); } return(new ObjectComparer().Compare(this.V, other.V)); }
public bool Equals(ValueWithAddressIndexKey <TValue> other) { return(this.CompareTo(other) == 0); }