Example #1
0
        /// <summary>
        /// find hash of book
        /// </summary>
        /// <returns>hash type of int</returns>
        public override int GetHashCode()
        {
            int hash = Name.GetHashCode();

            hash += Auther.GetHashCode();
            hash += Year.GetHashCode();
            hash += Publisher.GetHashCode();
            return(hash);
        }