/// <summary>
        /// Get factor data types for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Factor data types for specified locale.</returns>
        protected virtual FactorDataTypeList GetFactorDataTypes(ILocale locale)
        {
            FactorDataTypeList factorDataTypes = null;

            if (FactorDataTypes.ContainsKey(locale.ISOCode))
            {
                factorDataTypes = (FactorDataTypeList)(FactorDataTypes[locale.ISOCode]);
            }
            return(factorDataTypes);
        }
예제 #2
0
        /// <summary>
        /// Get factor data types for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Factor data types for specified locale.</returns>
        protected override FactorDataTypeList GetFactorDataTypes(ILocale locale)
        {
            FactorDataTypeList factorDataTypes = null;

            lock (FactorDataTypes)
            {
                if (FactorDataTypes.ContainsKey(locale.ISOCode))
                {
                    factorDataTypes = (FactorDataTypeList)(FactorDataTypes[locale.ISOCode]);
                }
            }
            return(factorDataTypes);
        }