I've been using a nuget package called ICal.net to load ics files to check for events that have recently been added.
I've noticed while using the IEnumerable Except
method for this that some events are missed even though you can see that more events have been added.
I came across the Uid
property in the Event, checked it out and noticed that its unique - https://github.com/rianjs/ical.net/blob/5176d27ac243eb98a01157f2ed7ff3e2852b98eb/v2/ical.NET/Interfaces/Components/IUniqueComponent.cs#L14
I wrote a IEqualityComparer<IEvent>
for this using the Uid but now all events are being seen as new events.
Was just wondering if anyone had any suggestions on how I can take 2 calendars, compare the events and get the differences? Currently there is 2000+ events and increasing so trying to keep it performant.