protected virtual CountryCloseDaysListEx DoLoad(long countryid, DateTime from, DateTime to) { CountryCloseDaysListEx item = new CountryCloseDaysListEx(countryid, from, to); _diction[countryid] = item; return(item); }
public YearlyWorkingDay CloseDayExists(long countryid, DateTime date) { CountryCloseDaysListEx item = this[countryid]; YearlyWorkingDay feast = null; if (item != null) { item.TryGetValue(date, out feast); } return(feast); }
public CountryCloseDaysListEx this[long id] { get { CountryCloseDaysListEx item = null; if (!_diction.TryGetValue(id, out item)) { item = DoLoad(id, FromDate, ToDate); } return(item); } }