예제 #1
0
        public override int GetHashCode()
        {
            var hash = HashCodeUtil.Initialize();

            for (var i = 0; i < Length; i++)
            {
                hash = HashCodeUtil.Hash(hash, ChainTypes[i]);
                hash = HashCodeUtil.Hash(hash, ChainObjects[i]);
            }

            return(hash);
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = HashCodeUtil.Initialize();

            for (int i = 0; i < count; i++)
            {
                hash = HashCodeUtil.Hash(hash, chainTypes[i]);
                hash = HashCodeUtil.Hash(hash, chainObjects[i]);
            }

            return(hash);
        }