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 = HashCodeHelper.Initialize();

            hash = HashCodeHelper.Hash(hash, Existing);
            hash = HashCodeHelper.Hash(hash, Alias);
            return(hash);
        }
Exemple #2
0
        /// <summary>
        /// Returns a hash code for this local date.
        /// </summary>
        /// <returns>A hash code for this local date.</returns>
        public override int GetHashCode()
        {
            int hash = HashCodeHelper.Initialize();

            hash = HashCodeHelper.Hash(hash, localDateTime);
            hash = HashCodeHelper.Hash(hash, offset);
            return(hash);
        }
        /// <summary>
        ///   Serves as a hash function for a particular type.
        /// </summary>
        /// <returns>
        ///   A hash code for the current <see cref="T:System.Object" />.
        /// </returns>
        /// <filterpriority>2</filterpriority>
        public override int GetHashCode()
        {
            int hash = HashCodeHelper.Initialize();

            hash = HashCodeHelper.Hash(hash, earlyInterval);
            hash = HashCodeHelper.Hash(hash, lateInterval);
            return(hash);
        }
Exemple #4
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 = HashCodeHelper.Initialize();

            hash = HashCodeHelper.Hash(hash, Recurrence);
            hash = HashCodeHelper.Hash(hash, LetterS);
            return(hash);
        }
Exemple #5
0
        /// <summary>
        /// Returns the hash code for this instance.
        /// </summary>
        /// <returns>
        /// A 32-bit signed integer that is the hash code for this instance.
        /// </returns>
        /// <filterpriority>2</filterpriority>
        public override int GetHashCode()
        {
            int hash = HashCodeHelper.Initialize();

            hash = HashCodeHelper.Hash(hash, Start);
            hash = HashCodeHelper.Hash(hash, End);
            return(hash);
        }
        /// <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 = HashCodeHelper.Initialize();

            hash = HashCodeHelper.Hash(hash, savings);
            hash = HashCodeHelper.Hash(hash, name);
            hash = HashCodeHelper.Hash(hash, yearOffset);
            return(hash);
        }
        /// <summary>
        /// Computes the hash code for this instance.
        /// </summary>
        /// <returns>
        /// A 32-bit signed integer that is the hash code for this instance.
        /// </returns>
        /// <filterpriority>2</filterpriority>
        public override int GetHashCode()
        {
            int hash = HashCodeHelper.Initialize();

            hash = HashCodeHelper.Hash(hash, LocalInstant);
            hash = HashCodeHelper.Hash(hash, Offset);
            hash = HashCodeHelper.Hash(hash, Zone);
            return(hash);
        }
Exemple #8
0
        public override int GetHashCode()
        {
            int hashCode = HashCodeHelper.Initialize();

            hashCode = HashCodeHelper.Hash(hashCode, Id);
            hashCode = HashCodeHelper.Hash(hashCode, standardOffset);
            hashCode = HashCodeHelper.Hash(hashCode, dstRecurrence);
            hashCode = HashCodeHelper.Hash(hashCode, standardRecurrence);
            return(hashCode);
        }
Exemple #9
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>
        /// <filterpriority>2</filterpriority>
        public override int GetHashCode()
        {
            int hash = HashCodeHelper.Initialize();

            hash = HashCodeHelper.Hash(hash, Name);
            hash = HashCodeHelper.Hash(hash, Start);
            hash = HashCodeHelper.Hash(hash, End);
            hash = HashCodeHelper.Hash(hash, WallOffset);
            hash = HashCodeHelper.Hash(hash, Savings);
            return(hash);
        }
Exemple #10
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 = HashCodeHelper.Initialize();

            hash = HashCodeHelper.Hash(hash, mode);
            hash = HashCodeHelper.Hash(hash, monthOfYear);
            hash = HashCodeHelper.Hash(hash, dayOfMonth);
            hash = HashCodeHelper.Hash(hash, dayOfWeek);
            hash = HashCodeHelper.Hash(hash, advance);
            hash = HashCodeHelper.Hash(hash, timeOfDay);
            hash = HashCodeHelper.Hash(hash, addDay);
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = HashCodeHelper.Initialize();

            hash = HashCodeHelper.Hash(hash, Id);
            hash = HashCodeHelper.Hash(hash, tailZoneStart);
            hash = HashCodeHelper.Hash(hash, firstTailZoneInterval);
            hash = HashCodeHelper.Hash(hash, tailZone);
            foreach (var period in periods)
            {
                hash = HashCodeHelper.Hash(hash, period);
            }
            return(hash);
        }
Exemple #12
0
        /// <summary>
        /// Returns the hash code for this period, consistent with <see cref="Equals(Period)"/>.
        /// </summary>
        /// <returns>The hash code for this period.</returns>
        public override int GetHashCode()
        {
            int hash = HashCodeHelper.Initialize();

            hash = HashCodeHelper.Hash(hash, years);
            hash = HashCodeHelper.Hash(hash, months);
            hash = HashCodeHelper.Hash(hash, weeks);
            hash = HashCodeHelper.Hash(hash, days);
            hash = HashCodeHelper.Hash(hash, hours);
            hash = HashCodeHelper.Hash(hash, minutes);
            hash = HashCodeHelper.Hash(hash, seconds);
            hash = HashCodeHelper.Hash(hash, milliseconds);
            hash = HashCodeHelper.Hash(hash, ticks);
            return(hash);
        }
Exemple #13
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 = HashCodeHelper.Initialize();

            hash = HashCodeHelper.Hash(hash, Name);
            hash = HashCodeHelper.Hash(hash, Offset);
            hash = HashCodeHelper.Hash(hash, Rules);
            hash = HashCodeHelper.Hash(hash, Format);
            hash = HashCodeHelper.Hash(hash, UntilYear);
            if (UntilYear != Int32.MaxValue)
            {
                hash = HashCodeHelper.Hash(hash, UntilYearOffset.GetHashCode());
            }

            return(hash);
        }
Exemple #14
0
            public int GetHashCode(ZoneInterval obj)
            {
                int hash = HashCodeHelper.Initialize();

                if (CheckOption(options, Options.MatchOffsetComponents))
                {
                    hash = HashCodeHelper.Hash(hash, obj.StandardOffset);
                    hash = HashCodeHelper.Hash(hash, obj.Savings);
                }
                else
                {
                    hash = HashCodeHelper.Hash(hash, obj.WallOffset);
                }
                if (CheckOption(options, Options.MatchNames))
                {
                    hash = HashCodeHelper.Hash(hash, obj.Name);
                }
                hash = HashCodeHelper.Hash(hash, GetEffectiveStart(obj));
                hash = HashCodeHelper.Hash(hash, GetEffectiveEnd(obj));
                return(hash);
            }
Exemple #15
0
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>
 /// A 32-bit signed integer that is the hash code for this instance.
 /// </returns>
 /// <filterpriority>2</filterpriority>
 public override int GetHashCode() => HashCodeHelper.Hash(start, end);
Exemple #16
0
 /// <summary>
 /// Returns a hash code for this offset date.
 /// </summary>
 /// <returns>A hash code for this offset date.</returns>
 public override int GetHashCode() => HashCodeHelper.Hash(Date, Offset);
 /// <inheritdoc />
 public override int GetHashCode(OffsetDateTime obj) => HashCodeHelper.Hash(obj.yearMonthDayCalendar, obj.NanosecondOfDay);
 /// <summary>
 /// Returns a hash code for this offset date and time.
 /// </summary>
 /// <returns>A hash code for this offset date and time.</returns>
 public override int GetHashCode() => HashCodeHelper.Hash(LocalDateTime, Offset);
 /// <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() => HashCodeHelper.Hash(Savings, Name, YearOffset);
Exemple #20
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() => HashCodeHelper.Hash(Recurrence, LetterS);
Exemple #21
0
 /// <summary>
 /// gets has code for lookup
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(HashCodeHelper.Hash(WindowsKey.GetHashCode(), WindowsModifiers.GetHashCode()));
 }
Exemple #22
0
 /// <summary>
 /// Returns a hash code for this offset time.
 /// </summary>
 /// <returns>A hash code for this offset time.</returns>
 public override int GetHashCode() => HashCodeHelper.Hash(TimeOfDay, Offset);
Exemple #23
0
 /// <summary>
 /// Computes the hash code for this instance.
 /// </summary>
 /// <returns>
 /// A 32-bit signed integer that is the hash code for this instance.
 /// </returns>
 /// <filterpriority>2</filterpriority>
 public override int GetHashCode() => HashCodeHelper.Hash(Offset, Id, Name);
Exemple #24
0
 /// <inheritdoc />
 public override int GetHashCode(OffsetDateTime obj) => HashCodeHelper.Hash(obj.localDate, obj.NanosecondOfDay);
Exemple #25
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() => HashCodeHelper.Hash(recurrence, daylightSavingsIndicator);
Exemple #26
0
 public override int GetHashCode()
 {
     return(HashCodeHelper.Hash(base.GetHashCode(), SlotIndex.GetHashCode()));
 }
Exemple #27
0
 /// <summary>
 /// Returns a hash code for this offset date and time.
 /// </summary>
 /// <returns>A hash code for this offset date and time.</returns>
 public override int GetHashCode() => HashCodeHelper.Hash(localDate, offsetTime);
Exemple #28
0
 public override int GetHashCode()
 {
     return(HashCodeHelper.Hash(base.GetHashCode(), ExpansionIndex.GetHashCode()));
 }
Exemple #29
0
 /// <summary>
 /// Computes the hash code for this instance.
 /// See the type documentation for a description of equality semantics.
 /// </summary>
 /// <returns>
 /// A 32-bit signed integer that is the hash code for this instance.
 /// </returns>
 /// <filterpriority>2</filterpriority>
 public override int GetHashCode() => HashCodeHelper.Hash(offsetDateTime, Zone);
Exemple #30
0
 /// <summary>
 /// Returns a hash code for this country.
 /// See the type documentation for a description of equality semantics.
 /// </summary>
 /// <returns>A hash code for this country.</returns>
 public override int GetHashCode() => HashCodeHelper.Hash(Name, Code);