Exemple #1
0
        /// <summary>
        /// Returns a hash code for this instance.
        /// </summary>
        /// <returns>
        /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
        /// </returns>
        public override int GetHashCode()
        {
            int hash = 27;

            hash = (13 * hash) + _Range.GetHashCode();
            hash = (13 * hash) + _TimeUnit.GetHashCode();
            hash = (13 * hash) + _NumberOfTimeUnits.GetHashCode();
            hash = (13 * hash) + _DateStart.GetValueOrDefault().GetHashCode();
            hash = (13 * hash) + _DateEnd.GetValueOrDefault().GetHashCode();

            return(hash);
        }