public void UpdateHolidays(IEnumerable <Holiday> newHolidays) { lock (_holidaysLock) { Holidays.Clear(); Holidays.AddRange(newHolidays); } }
/// <summary> /// Release object and sources /// </summary> public void Dispose() { Holidays.Clear(); WorkTimes.Clear(); }