public RecurrenceDescriptor(string rd) { var parts = rd.Split(); if (parts.Length != 7) { throw new Exception("Invalid recurrence descriptor format"); } Seconds = new SecondsDescriptorPart(parts[0]); Minutes = new MinutesDescriptorPart(parts[1]); Hours = new HoursDescriptorPart(parts[2]); DaysOfMonth = new DayOfMonthDescriptorPart(parts[3]); Months = new MonthDescriptorPart(parts[4]); DaysOfWeek = new DayOfWeekDescriptorPart(parts[5]); Years = new YearDescriptorPart(parts[6]); }