/// <summary> /// Get taxon categories for specified locale. /// </summary> /// <param name="locale">Locale.</param> /// <returns>Taxon categories for specified locale.</returns> protected virtual TaxonCategoryList GetTaxonCategories(ILocale locale) { TaxonCategoryList taxonCategories = null; if (TaxonCategories.ContainsKey(locale.ISOCode)) { taxonCategories = (TaxonCategoryList)(TaxonCategories[locale.ISOCode]); } return(taxonCategories); }
/// <summary> /// Get taxon categories for specified locale. /// </summary> /// <param name="locale">Locale.</param> /// <returns>Taxon categories for specified locale.</returns> protected override TaxonCategoryList GetTaxonCategories(ILocale locale) { TaxonCategoryList taxonCategories = null; lock (TaxonCategories) { if (TaxonCategories.ContainsKey(locale.ISOCode)) { taxonCategories = (TaxonCategoryList)(TaxonCategories[locale.ISOCode]); } } return(taxonCategories); }