Exemplo n.º 1
0
        public override int GetHashCode()
        {
            var hashCode = -1129514919;

            hashCode = hashCode * -1521134295 + base.GetHashCode();
            hashCode = hashCode * -1521134295 + ArrayLength.GetHashCode();
            return(hashCode);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Serves as a hash function for a particular type. <see cref="M:System.Object.GetHashCode"/> is suitable for
        /// use in hashing algorithms and data structures like a hash table.
        /// </summary>
        /// <returns>
        /// A hash code for the current <see cref="T:System.Object"/>.
        /// </returns>
        public override int GetHashCode()
        {
            unchecked {
                int result = BaseType.GetHashCode();
                result = (result * 397) ^ ArrayLength.GetHashCode();

                return(result);
            }
        }