Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (ConnectionGroupId.Length != 0)
            {
                hash ^= ConnectionGroupId.GetHashCode();
            }
            if (Privacy != global::Tron.Protocol.Messages.Common.Privacy.Public)
            {
                hash ^= Privacy.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (color_ != null)
            {
                hash ^= Color.GetHashCode();
            }
            if (ConnectionGroupId.Length != 0)
            {
                hash ^= ConnectionGroupId.GetHashCode();
            }
            if (settings_ != null)
            {
                hash ^= Settings.GetHashCode();
            }
            hash ^= players_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }