public override bool Equals(object obj) { var rhs = obj as NodeInfo; if (rhs != null) { return (Identifier.Equals(rhs.Identifier) && RoutingHash.Equals(rhs.RoutingHash) && HostAndPort.Equals(rhs.HostAndPort)); } return(false); }
public int CompareTo(NodeInfo other) { return (RoutingHash < other.RoutingHash?-1: RoutingHash.Equals(other.RoutingHash)?0:1); }
public override int GetHashCode() { return(Identifier.GetHashCode() ^ RoutingHash.GetHashCode() ^ HostAndPort.GetHashCode()); }