/// <summary>Registers a collection of <see cref="IHolidayCalendar"/> objects. /// </summary> /// <param name="values">The collection of <see cref="IHolidayCalendar"/> objects to register.</param> /// <returns>For each element of <paramref name="values"/> a value indicating whether the <see cref="IHolidayCalendar"/> /// object has been inserted.</returns> public ItemAddedState[] Add(params IHolidayCalendar[] values) { if (values == null) { return(null); } IList <ItemAddedState> stateList = new List <ItemAddedState>(); for (int j = 0; j < values.Length; j++) { stateList.Add(HolidayCalendar.Add(values[j])); } return(stateList.ToArray()); }
/// <summary>Registers a specific <see cref="IHolidayCalendar"/> object. /// </summary> /// <param name="value">The <see cref="IHolidayCalendar"/> object to register.</param> /// <returns>A value indicating whether <paramref name="value"/> has been inserted.</returns> public ItemAddedState Add(IHolidayCalendar value) { return(HolidayCalendar.Add(value)); }