/// <summary>
        /// Get period types for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Period types for specified locale.</returns>
        protected virtual PeriodTypeList GetPeriodTypes(ILocale locale)
        {
            PeriodTypeList periodTypes = null;

            if (PeriodTypes.ContainsKey(locale.ISOCode))
            {
                periodTypes = (PeriodTypeList)(PeriodTypes[locale.ISOCode]);
            }
            return(periodTypes);
        }
Beispiel #2
0
        /// <summary>
        /// Get period types for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Period types for specified locale.</returns>
        protected override PeriodTypeList GetPeriodTypes(ILocale locale)
        {
            PeriodTypeList periodTypes = null;

            lock (PeriodTypes)
            {
                if (PeriodTypes.ContainsKey(locale.ISOCode))
                {
                    periodTypes = (PeriodTypeList)(PeriodTypes[locale.ISOCode]);
                }
            }
            return(periodTypes);
        }