Ejemplo n.º 1
0
        /// <summary>
        /// Serves as a hash function for a particular type.
        /// </summary>
        /// <returns>
        /// A hash code for the current <see cref="T:System.Object"/>.
        /// </returns>
        public override int GetHashCode()
        {
            long GetHashCode = 0;

            GetHashCode += FormatID.GetHashCode();
            Property[] pa = Properties;
            for (int i = 0; i < pa.Length; i++)
            {
                GetHashCode += pa[i].GetHashCode();
            }
            int returnHashCode = (int)(GetHashCode & 0x0ffffffffL);

            return(returnHashCode);
        }