Esempio n. 1
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (FileHash.Length != 0)
        {
            hash ^= FileHash.GetHashCode();
        }
        if (CurLocation.Length != 0)
        {
            hash ^= CurLocation.GetHashCode();
        }
        if (DstLocation.Length != 0)
        {
            hash ^= DstLocation.GetHashCode();
        }
        if (DstType != global::RabbitMsg.Types.DstType.Minio)
        {
            hash ^= DstType.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Esempio n. 2
0
 private bool Equals(DstLocation other)
 {
     return(Equals(Word, other.Word) && FullPath == other.FullPath);
 }