示例#1
0
文件: Auth.cs 项目: qipa/gax-dotnet
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Issuer.Length != 0)
            {
                hash ^= Issuer.GetHashCode();
            }
            if (JwksUri.Length != 0)
            {
                hash ^= JwksUri.GetHashCode();
            }
            if (Audiences.Length != 0)
            {
                hash ^= Audiences.GetHashCode();
            }
            if (AuthorizationUrl.Length != 0)
            {
                hash ^= AuthorizationUrl.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Audiences != null ? Audiences.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Issuer != null ? Issuer.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CreationTime.GetHashCode();
         hashCode = (hashCode * 397) ^ Lifetime;
         hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ClientId != null ? ClientId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)AccessTokenType;
         hashCode = (hashCode * 397) ^ (Claims != null ? Claims.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Version;
         return(hashCode);
     }
 }