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