public override int GetHashCode()
        {
            int num = base.GetType().GetHashCode();

            num ^= this.Account.GetHashCode();
            using (List <AccountCredential> .Enumerator enumerator = this.OldCredentials.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    AccountCredential current = enumerator.get_Current();
                    num ^= current.GetHashCode();
                }
            }
            using (List <AccountCredential> .Enumerator enumerator2 = this.NewCredentials.GetEnumerator())
            {
                while (enumerator2.MoveNext())
                {
                    AccountCredential current2 = enumerator2.get_Current();
                    num ^= current2.GetHashCode();
                }
            }
            if (this.HasRegion)
            {
                num ^= this.Region.GetHashCode();
            }
            return(num);
        }
Exemple #2
0
        public override int GetHashCode()
        {
            int num = base.GetType().GetHashCode();

            num ^= this.Id.GetHashCode();
            num ^= this.Region.GetHashCode();
            using (List <string> .Enumerator enumerator = this.Email.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    string current = enumerator.get_Current();
                    num ^= current.GetHashCode();
                }
            }
            num ^= this.Flags.GetHashCode();
            if (this.HasSecureRelease)
            {
                num ^= this.SecureRelease.GetHashCode();
            }
            if (this.HasWhitelistStart)
            {
                num ^= this.WhitelistStart.GetHashCode();
            }
            if (this.HasWhitelistEnd)
            {
                num ^= this.WhitelistEnd.GetHashCode();
            }
            num ^= this.FullName.GetHashCode();
            using (List <AccountLicense> .Enumerator enumerator2 = this.Licenses.GetEnumerator())
            {
                while (enumerator2.MoveNext())
                {
                    AccountLicense current2 = enumerator2.get_Current();
                    num ^= current2.GetHashCode();
                }
            }
            using (List <AccountCredential> .Enumerator enumerator3 = this.Credentials.GetEnumerator())
            {
                while (enumerator3.MoveNext())
                {
                    AccountCredential current3 = enumerator3.get_Current();
                    num ^= current3.GetHashCode();
                }
            }
            using (List <GameAccountLink> .Enumerator enumerator4 = this.AccountLinks.GetEnumerator())
            {
                while (enumerator4.MoveNext())
                {
                    GameAccountLink current4 = enumerator4.get_Current();
                    num ^= current4.GetHashCode();
                }
            }
            if (this.HasBattleTag)
            {
                num ^= this.BattleTag.GetHashCode();
            }
            if (this.HasDefaultCurrency)
            {
                num ^= this.DefaultCurrency.GetHashCode();
            }
            if (this.HasLegalRegion)
            {
                num ^= this.LegalRegion.GetHashCode();
            }
            if (this.HasLegalLocale)
            {
                num ^= this.LegalLocale.GetHashCode();
            }
            num ^= this.CacheExpiration.GetHashCode();
            if (this.HasParentalControlInfo)
            {
                num ^= this.ParentalControlInfo.GetHashCode();
            }
            if (this.HasCountry)
            {
                num ^= this.Country.GetHashCode();
            }
            if (this.HasPreferredRegion)
            {
                num ^= this.PreferredRegion.GetHashCode();
            }
            return(num);
        }