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

            if (opts_ != null)
            {
                hash ^= Opts.GetHashCode();
            }
            if (GcNID != 0UL)
            {
                hash ^= GcNID.GetHashCode();
            }
            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Ukey != 0)
            {
                hash ^= Ukey.GetHashCode();
            }
            if (Channel != 0)
            {
                hash ^= Channel.GetHashCode();
            }
            if (Browser != 0)
            {
                hash ^= Browser.GetHashCode();
            }
            if (Platform != 0)
            {
                hash ^= Platform.GetHashCode();
            }
            if (SessionKey.Length != 0)
            {
                hash ^= SessionKey.GetHashCode();
            }
            if (UnionID.Length != 0)
            {
                hash ^= UnionID.GetHashCode();
            }
            if (Nickname.Length != 0)
            {
                hash ^= Nickname.GetHashCode();
            }
            if (Avatar.Length != 0)
            {
                hash ^= Avatar.GetHashCode();
            }
            if (Gender != 0)
            {
                hash ^= Gender.GetHashCode();
            }
            if (Money != 0)
            {
                hash ^= Money.GetHashCode();
            }
            if (Diamoned != 0)
            {
                hash ^= Diamoned.GetHashCode();
            }
            if (Rank != 0)
            {
                hash ^= Rank.GetHashCode();
            }
            if (Exp != 0)
            {
                hash ^= Exp.GetHashCode();
            }
            if (Champions.Length != 0)
            {
                hash ^= Champions.GetHashCode();
            }
            if (ActorID != 0)
            {
                hash ^= ActorID.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
0
 public override int GetHashCode()
 {
     return(SessionKey.GetHashCode());
 }