コード例 #1
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + Process.GetHashCode();
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Spans);
                if (__isset.seqNo)
                {
                    hashcode = (hashcode * 397) + SeqNo.GetHashCode();
                }
                if (__isset.stats)
                {
                    hashcode = (hashcode * 397) + Stats.GetHashCode();
                }
            }
            return(hashcode);
        }
コード例 #2
0
ファイル: Tiger.cs プロジェクト: wayright/slotClient
        public override int GetHashCode()
        {
            int hash = 1;

            if (TigerNo != 0)
            {
                hash ^= TigerNo.GetHashCode();
            }
            if (SeqNo != 0)
            {
                hash ^= SeqNo.GetHashCode();
            }
            if (BetGold != 0L)
            {
                hash ^= BetGold.GetHashCode();
            }
            hash ^= lines_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #3
0
ファイル: Tiger.cs プロジェクト: wayright/slotClient
        public override int GetHashCode()
        {
            int hash = 1;

            if (TigerNo != 0)
            {
                hash ^= TigerNo.GetHashCode();
            }
            if (SeqNo != 0)
            {
                hash ^= SeqNo.GetHashCode();
            }
            hash ^= pos_.GetHashCode();
            hash ^= bonus_.GetHashCode();
            if (current_ != null)
            {
                hash ^= Current.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #4
0
 public override int GetHashCode() => SeqNo.GetHashCode() ^ Identifier?.GetHashCode() ?? -1;       // if 'Identifier' is null, then the RHS = '0' (and the HashCode is effectively based on SeqNo).