public bool Equals(PeerSocketAddress other) { var t1 = InetAddress.Equals(other.InetAddress); var t2 = TcpPort.Equals(other.TcpPort); var t3 = UdpPort.Equals(other.UdpPort); return(t1 && t2 && t3); }