// BEGIN:STANDARD (BEGIN:DAYLIGHT) // TZOFFSETFROM:+0200 (+0100) // TZOFFSETTO:+0100 (+0200) // TZNAME:CET // DTSTART:19701025T030000 // RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU // END:STANDARD (END:DAYLIGHT) internal override List <ComponentLine> BuildLines() { List <ComponentLine> lines = new List <ComponentLine> { new ComponentLine("TZOFFSETFROM:", OffsetFrom.ToCalendarString()), new ComponentLine("TZOFFSETTO:", OffsetTo.ToCalendarString()), new ComponentLine("DTSTART:", StartDate.ToCalendarDateTime()) }; if (RecurrenceRule != null) { lines.Add(RecurrenceRule.BuildLine()); } return(BuildComponent(lines)); }
/// <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 = 13; if (TimeZoneName != null) { hash = (hash * 7) + TimeZoneName.GetHashCode( ); } if (OffsetFrom != null) { hash = (hash * 7) + OffsetFrom.GetHashCode( ); } if (OffsetTo != null) { hash = (hash * 7) + OffsetTo.GetHashCode( ); } return(hash); }