Пример #1
0
    public override int GetHashCode()
    {
        var hashCode = 1749498485;

        hashCode = hashCode * -1521134295 + EqualityComparer <IPAddress> .Default.GetHashCode(Address);

        hashCode = hashCode * -1521134295 + UdpPort.GetHashCode();
        hashCode = hashCode * -1521134295 + TcpPort.GetHashCode();
        return(hashCode);
    }