Пример #1
0
        public override int GetHashCode()
        {
            int num = base.GetType().GetHashCode();

            if (this.HasBlob)
            {
                num ^= this.Blob.GetHashCode();
            }
            if (this.HasId)
            {
                num ^= this.Id.GetHashCode();
            }
            using (List <string> .Enumerator enumerator = this.Email.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    string current = enumerator.get_Current();
                    num ^= current.GetHashCode();
                }
            }
            if (this.HasBattleTag)
            {
                num ^= this.BattleTag.GetHashCode();
            }
            if (this.HasFullName)
            {
                num ^= this.FullName.GetHashCode();
            }
            using (List <GameAccountLink> .Enumerator enumerator2 = this.Links.GetEnumerator())
            {
                while (enumerator2.MoveNext())
                {
                    GameAccountLink current2 = enumerator2.get_Current();
                    num ^= current2.GetHashCode();
                }
            }
            if (this.HasParentalControlInfo)
            {
                num ^= this.ParentalControlInfo.GetHashCode();
            }
            return(num);
        }
Пример #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);
        }