private static CalendarBundle CreateCalendarFromXmlObject(calendarType ct) { CalendarBundle c = new CalendarBundle(); // set type name first as it creates the actual inner instance c.TypeName = ct.type; c.Description = ct.description; c.CalendarName = ct.name; c.Replace = ct.replace; if (ct.basecalendar != null) { c.CalendarBase = CreateCalendarFromXmlObject(ct.basecalendar); } return(c); }
private static CalendarBundle CreateCalendarFromXmlObject(calendarType ct) { CalendarBundle c = new CalendarBundle(); // set type name first as it creates the actual inner instance c.TypeName = ct.type; c.Description = ct.description; c.CalendarName = ct.name; c.Replace = ct.replace; if (ct.basecalendar != null) { c.CalendarBase = CreateCalendarFromXmlObject(ct.basecalendar); } return c; }