Esempio n. 1
0
        public OccurrenceEnumerable(IRecurrenceType recurrenceType)
        {
            if (recurrenceType == null)
            {
                throw new ArgumentNullException("recurrenceType");
            }

            _recurrenceType = recurrenceType;
        }
Esempio n. 2
0
        public OccurrenceEnumerator(IRecurrenceType recurrenceType, DateTime startDate)
        {
            if (recurrenceType == null)
            {
                throw new ArgumentNullException("recurrenceType");
            }

            _recurrenceType   = recurrenceType;
            _startDate        = startDate;
            Current           = startDate;
            _occurrenceNumber = 0;
        }