GetOccurrences and Occurence.Period.End , property Period.End null in v5
#860
-
|
In v4 we had this code: var occurrence = cal
.GetOccurrences<CalendarEvent>(date, date)
.Single();I migrated to: var occurrence = cal
.GetOccurrences<CalendarEvent>(dt)
.TakeWhile(p => p.Period.StartTime <= dt)
.Single();The sources for both is the same ical file. The property I'm not sure if this is a bug or not. Did migrate the code correctly? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Please see the Release Notes v5.0: |
Beta Was this translation helpful? Give feedback.
-
|
@axunonb thanks, that resolves my issue. I did read the release notes but. It would help if the breaking changes would include specifically listing that |
Beta Was this translation helpful? Give feedback.
Please see the Release Notes v5.0:
Breaking:
Occurrence.Periodis determined byStartTimeandDurationonly in #808To get the end date/time, use
Period.EffectiveEndTime.