예제 #1
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (PolicyName != null)
         {
             hashCode = hashCode * 59 + PolicyName.GetHashCode();
         }
         if (Scopes != null)
         {
             hashCode = hashCode * 59 + Scopes.GetHashCode();
         }
         if (Actions != null)
         {
             hashCode = hashCode * 59 + Actions.GetHashCode();
         }
         if (CreateDate != null)
         {
             hashCode = hashCode * 59 + CreateDate.GetHashCode();
         }
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hashCode = -994318680;

            if (ClientId != null)
            {
                hashCode += ClientId.GetHashCode();
            }

            if (ClientSecret != null)
            {
                hashCode += ClientSecret.GetHashCode();
            }

            if (Code != null)
            {
                hashCode += Code.GetHashCode();
            }

            if (RedirectUri != null)
            {
                hashCode += RedirectUri.GetHashCode();
            }

            if (GrantType != null)
            {
                hashCode += GrantType.GetHashCode();
            }

            if (RefreshToken != null)
            {
                hashCode += RefreshToken.GetHashCode();
            }

            if (MigrationToken != null)
            {
                hashCode += MigrationToken.GetHashCode();
            }

            if (Scopes != null)
            {
                hashCode += Scopes.GetHashCode();
            }

            if (ShortLived != null)
            {
                hashCode += ShortLived.GetHashCode();
            }

            return(hashCode);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 31 + EnableSavedGames.GetHashCode();
         hash = hash * 31 + IsForcingRefresh.GetHashCode();
         hash = hash * 31 + IsHidingPopups.GetHashCode();
         hash = hash * 31 + IsRequestingEmail.GetHashCode();
         hash = hash * 31 + IsRequestingAuthCode.GetHashCode();
         hash = hash * 31 + Scopes.GetHashCode();
         hash = hash * 31 + AccountName.GetHashCode();
         hash = hash * 31 + InvitationDelegate.GetHashCode();
         hash = hash * 31 + MatchDelegate.GetHashCode();
         return(hash);
     }
 }
예제 #4
0
        /// <summary>
        ///     Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;
                // Suitable nullity checks etc, of course :)
                if (IsCanceled != null)
                {
                    hashCode = hashCode * 59 + IsCanceled.GetHashCode();
                }

                if (IsError != null)
                {
                    hashCode = hashCode * 59 + IsError.GetHashCode();
                }

                if (ErrorCode != null)
                {
                    hashCode = hashCode * 59 + ErrorCode.GetHashCode();
                }

                if (AccessToken != null)
                {
                    hashCode = hashCode * 59 + AccessToken.GetHashCode();
                }

                if (IdToken != null)
                {
                    hashCode = hashCode * 59 + IdToken.GetHashCode();
                }

                if (Scopes != null)
                {
                    hashCode = hashCode * 59 + Scopes.GetHashCode();
                }

                if (ExpiresOn != null)
                {
                    hashCode = hashCode * 59 + ExpiresOn.GetHashCode();
                }

                return(hashCode);
            }
        }