Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ServerVer != 0)
            {
                hash ^= ServerVer.GetHashCode();
            }
            if (LoginUserID != 0UL)
            {
                hash ^= LoginUserID.GetHashCode();
            }
            if (ConnID != 0UL)
            {
                hash ^= ConnID.GetHashCode();
            }
            if (ConnAESKey.Length != 0)
            {
                hash ^= ConnAESKey.GetHashCode();
            }
            if (KeepAliveInterval != 0)
            {
                hash ^= KeepAliveInterval.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MarketHK != 0)
            {
                hash ^= MarketHK.GetHashCode();
            }
            if (MarketUS != 0)
            {
                hash ^= MarketUS.GetHashCode();
            }
            if (MarketSH != 0)
            {
                hash ^= MarketSH.GetHashCode();
            }
            if (MarketSZ != 0)
            {
                hash ^= MarketSZ.GetHashCode();
            }
            if (MarketHKFuture != 0)
            {
                hash ^= MarketHKFuture.GetHashCode();
            }
            if (QotLogined != false)
            {
                hash ^= QotLogined.GetHashCode();
            }
            if (TrdLogined != false)
            {
                hash ^= TrdLogined.GetHashCode();
            }
            if (ServerVer != 0)
            {
                hash ^= ServerVer.GetHashCode();
            }
            if (ServerBuildNo != 0)
            {
                hash ^= ServerBuildNo.GetHashCode();
            }
            if (Time != 0L)
            {
                hash ^= Time.GetHashCode();
            }
            if (LocalTime != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LocalTime);
            }
            if (programStatus_ != null)
            {
                hash ^= ProgramStatus.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }