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

            unchecked {
                hashcode = (hashcode * 397) + RespNum.GetHashCode();
                if (__isset.partitionTableBytes)
                {
                    hashcode = (hashcode * 397) + PartitionTableBytes.GetHashCode();
                }
                if (__isset.checkStatusResponse)
                {
                    hashcode = (hashcode * 397) + CheckStatusResponse.GetHashCode();
                }
            }
            return(hashcode);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + Term.GetHashCode();
                hashcode = (hashcode * 397) + CommitLogIndex.GetHashCode();
                hashcode = (hashcode * 397) + CommitLogTerm.GetHashCode();
                hashcode = (hashcode * 397) + Leader.GetHashCode();
                hashcode = (hashcode * 397) + RequireIdentifier.GetHashCode();
                hashcode = (hashcode * 397) + RegenerateIdentifier.GetHashCode();
                if (__isset.partitionTableBytes)
                {
                    hashcode = (hashcode * 397) + PartitionTableBytes.GetHashCode();
                }
                if (__isset.header)
                {
                    hashcode = (hashcode * 397) + Header.GetHashCode();
                }
            }
            return(hashcode);
        }