public OccurrenceEnumerable(IRecurrenceType recurrenceType) { if (recurrenceType == null) { throw new ArgumentNullException("recurrenceType"); } _recurrenceType = recurrenceType; }
public OccurrenceEnumerator(IRecurrenceType recurrenceType, DateTime startDate) { if (recurrenceType == null) { throw new ArgumentNullException("recurrenceType"); } _recurrenceType = recurrenceType; _startDate = startDate; Current = startDate; _occurrenceNumber = 0; }