예제 #1
0
        public override int GetHashCode()
        {
            unchecked
            {
                var baseHashCode = base.GetHashCode();

                var hashCode = baseHashCode;
                hashCode = (hashCode * 397) ^ Index;
                hashCode = (hashCode * 397) ^ (BlockHash != null ? BlockHash.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ BlockHeight.GetHashCode();
                hashCode = (hashCode * 397) ^ (BlockTime != null ? BlockTime.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Confirmations;
                return(hashCode);
            }
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (BlockHeight != 0L)
            {
                hash ^= BlockHeight.GetHashCode();
            }
            if (tokenHash_ != null)
            {
                hash ^= TokenHash.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }