示例#1
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (ZmqHost.Length != 0)
        {
            hash ^= ZmqHost.GetHashCode();
        }
        if (ZmqPort.Length != 0)
        {
            hash ^= ZmqPort.GetHashCode();
        }
        if (TotalSpace != 0UL)
        {
            hash ^= TotalSpace.GetHashCode();
        }
        if (AvailableSpace != 0UL)
        {
            hash ^= AvailableSpace.GetHashCode();
        }
        if (HttpPort.Length != 0)
        {
            hash ^= HttpPort.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
 public override string ToString()
 {
     return(string.Format("{0} | Größe: {1} | Frei: {2}",
                          Name,
                          TotalSpace.Bytes().Humanize("0.#"),
                          FreeSpace.Bytes().Humanize("0.#")
                          ));
 }