示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (accountId_ != null)
            {
                hash ^= AccountId.GetHashCode();
            }
            hash ^= attribute_.GetHashCode();
            hash ^= role_.GetHashCode();
            if (Privileges != 0UL)
            {
                hash ^= Privileges.GetHashCode();
            }
            if (AttributesEpoch != 0UL)
            {
                hash ^= AttributesEpoch.GetHashCode();
            }
            if (FullName.Length != 0)
            {
                hash ^= FullName.GetHashCode();
            }
            if (BattleTag.Length != 0)
            {
                hash ^= BattleTag.GetHashCode();
            }
            return(hash);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasAccountId)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (HasName)
            {
                hash ^= Name.GetHashCode();
            }
            hash ^= role_.GetHashCode();
            if (HasPrivileges)
            {
                hash ^= Privileges.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }