Exemplo n.º 1
0
        /// <summary>
        /// Return the HashCode of this object.
        /// </summary>
        /// <returns>The HashCode of this object.</returns>
        public override Int32 GetHashCode()

        => Media.GetHashCode() * 13 ^
        Channel.GetHashCode() * 11 ^
        Indicator.GetHashCode() * 7 ^
        Mode.GetHashCode() * 5 ^
        Quantities.GetHashCode() * 3 ^
        Storage.GetHashCode();
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (roomType_ != null)
            {
                hash ^= RoomType.GetHashCode();
            }
            if (date_ != null)
            {
                hash ^= Date.GetHashCode();
            }
            if (offeredPrice_ != null)
            {
                hash ^= OfferedPrice.GetHashCode();
            }
            if (quantities_ != null)
            {
                hash ^= Quantities.GetHashCode();
            }
            hash ^= requiredReservationTags_.GetHashCode();
            return(hash);
        }