コード例 #1
0
        protected override bool EqualsImpl(DateTimeZone other)
        {
            DaylightSavingsDateTimeZone otherZone = (DaylightSavingsDateTimeZone)other;

            return(Id == otherZone.Id &&
                   standardOffset == otherZone.standardOffset &&
                   dstRecurrence.Equals(otherZone.dstRecurrence) &&
                   standardRecurrence.Equals(otherZone.standardRecurrence));
        }
コード例 #2
0
 public bool Equals(StandardDaylightAlternatingMap?other) =>
 other != null &&
 standardOffset == other.standardOffset &&
 dstRecurrence.Equals(other.dstRecurrence) &&
 standardRecurrence.Equals(other.standardRecurrence);