Esempio n. 1
0
        /// <summary>
        /// Get taxon name usage for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Taxon name usage for specified locale.</returns>
        protected virtual TaxonNameUsageList GetTaxonNameUsage(ILocale locale)
        {
            TaxonNameUsageList taxonNameUsage = null;

            if (TaxonNameUsages.ContainsKey(locale.ISOCode))
            {
                taxonNameUsage = (TaxonNameUsageList)(TaxonNameUsages[locale.ISOCode]);
            }

            return(taxonNameUsage);
        }
Esempio n. 2
0
        /// <summary>
        /// Get taxon name usage for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Taxon name usage for specified locale.</returns>
        protected override TaxonNameUsageList GetTaxonNameUsage(ILocale locale)
        {
            TaxonNameUsageList taxonNameUsage = null;

            lock (TaxonNameUsages)
            {
                if (TaxonNameUsages.ContainsKey(locale.ISOCode))
                {
                    taxonNameUsage = (TaxonNameUsageList)(TaxonNameUsages[locale.ISOCode]);
                }
            }

            return(taxonNameUsage);
        }