Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions Ical.Net/VTimeZoneInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ public class VTimeZoneInfo : CalendarComponent, IRecurrable

public VTimeZoneInfo()
{
// FIXME: how do we ensure SEQUENCE doesn't get serialized?
//base.Sequence = null;
// iCalTimeZoneInfo does not allow sequence numbers
// Perhaps we should have a custom serializer that fixes this?

Initialize();
}
public VTimeZoneInfo(string name) : this()
Expand All @@ -41,14 +36,14 @@ private void Initialize()
protected override void OnDeserializing(StreamingContext context)
{
base.OnDeserializing(context);

Initialize();
}

public virtual string? TzId
{
get =>
!(Parent is VTimeZone tz)
Parent is not VTimeZone tz
? null
: tz.TzId;
}
Expand Down
Loading