/// <summary>
 /// Returns a hash-code based on the current value of this object.
 /// </summary>
 public override int GetHashCode()
 {
     return
         ((TimeZoneId ?? "").GetHashCode() ^
          Start.GetHashCode() ^
          Duration.GetHashCode() ^
          Recurrence.GetHashCode() ^
          Interval.GetHashCode() ^
          Days.GetHashCode());
 }
Example #2
0
        /// <summary>
        /// Returns a hash-code based on the current value of this object.
        /// </summary>
        public override int GetHashCode()
        {
            return
                (#if !NETSTANDARD2_0
                 (TimeZoneId?.GetHashCode(StringComparison.OrdinalIgnoreCase) ?? 0) ^
#else
                 (TimeZoneId?.GetHashCode() ?? 0) ^
#endif
                 Start.GetHashCode() ^
                 Duration.GetHashCode() ^
                 Recurrence.GetHashCode() ^
                 Interval.GetHashCode() ^
                 Days.GetHashCode());
        }