コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Network.Length != 0)
            {
                hash ^= Network.GetHashCode();
            }
            hash ^= outputs_.GetHashCode();
            if (Time != 0UL)
            {
                hash ^= Time.GetHashCode();
            }
            if (Expires != 0UL)
            {
                hash ^= Expires.GetHashCode();
            }
            if (Memo.Length != 0)
            {
                hash ^= Memo.GetHashCode();
            }
            if (PaymentUrl.Length != 0)
            {
                hash ^= PaymentUrl.GetHashCode();
            }
            if (MerchantData.Length != 0)
            {
                hash ^= MerchantData.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
 public override int GetHashCode()
 {
     return(StringComparer.OrdinalIgnoreCase.GetHashCode(_name)
            ^ StringComparer.OrdinalIgnoreCase.GetHashCode(_value)
            ^ (Expires.HasValue ? Expires.GetHashCode() : 0)
            ^ (MaxAge.HasValue ? MaxAge.GetHashCode() : 0)
            ^ (Domain != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(Domain) : 0)
            ^ (Path != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(Path) : 0)
            ^ Secure.GetHashCode()
            ^ HttpOnly.GetHashCode());
 }
コード例 #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = NotBefore.GetHashCode();
         hashCode = (hashCode * 397) ^ Expires.GetHashCode();
         hashCode = (hashCode * 397) ^ Admin.GetHashCode();
         hashCode = (hashCode * 397) ^ Debug.GetHashCode();
         return(hashCode);
     }
 }
コード例 #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ETag != null ? ETag.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ MaxAge.GetHashCode();
         hashCode = (hashCode * 397) ^ Expires.GetHashCode();
         hashCode = (hashCode * 397) ^ LastModified.GetHashCode();
         hashCode = (hashCode * 397) ^ CacheControl.GetHashCode();
         return(hashCode);
     }
 }
コード例 #5
0
ファイル: TokenDetails.cs プロジェクト: withakay/ably-dotnet
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Token?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ Expires.GetHashCode();
         hashCode = (hashCode * 397) ^ Issued.GetHashCode();
         hashCode = (hashCode * 397) ^ (Capability?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ClientId?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
コード例 #6
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Value != null ? Value.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Domain != null ? Domain.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Path != null ? Path.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Expires.GetHashCode();
         hashCode = (hashCode * 397) ^ SecureOnly.GetHashCode();
         hashCode = (hashCode * 397) ^ HttpOnly.GetHashCode();
         return(hashCode);
     }
 }
        public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (Name?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Error?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Expires.GetHashCode());
            hashCode = hashCode * -1521134295 + (ExpirationDateTime?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PendingSince?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PendingJobCreatedBy?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PendingStep?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Status?.GetHashCode() ?? 0);
            return(hashCode);
        }
コード例 #8
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.expires)
            {
                hashcode = (hashcode * 397) + Expires.GetHashCode();
            }
            if (__isset.matrices)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Matrices);
            }
        }
        return(hashcode);
    }
コード例 #9
0
        public override int GetHashCode()
        {
            var hash = StringSegmentComparer.OrdinalIgnoreCase.GetHashCode(_name)
                       ^ StringSegmentComparer.OrdinalIgnoreCase.GetHashCode(_value)
                       ^ (Expires.HasValue ? Expires.GetHashCode() : 0)
                       ^ (MaxAge.HasValue ? MaxAge.GetHashCode() : 0)
                       ^ (Domain != null ? StringSegmentComparer.OrdinalIgnoreCase.GetHashCode(Domain) : 0)
                       ^ (Path != null ? StringSegmentComparer.OrdinalIgnoreCase.GetHashCode(Path) : 0)
                       ^ Secure.GetHashCode()
                       ^ SameSite.GetHashCode()
                       ^ HttpOnly.GetHashCode();

            foreach (var extension in Extensions)
            {
                hash ^= extension.GetHashCode();
            }

            return(hash);
        }