/// <summary>
        /// Get address types for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Address types for specified locale.</returns>
        protected virtual AddressTypeList GetAddressTypes(ILocale locale)
        {
            AddressTypeList addressTypes = null;

            if (AddressTypes.ContainsKey(locale.ISOCode))
            {
                addressTypes = (AddressTypeList)(AddressTypes[locale.ISOCode]);
            }
            return(addressTypes);
        }
Пример #2
0
        /// <summary>
        /// Get address types for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Address types for specified locale.</returns>
        protected override AddressTypeList GetAddressTypes(ILocale locale)
        {
            AddressTypeList addressTypes = null;

            lock (AddressTypes)
            {
                if (AddressTypes.ContainsKey(locale.ISOCode))
                {
                    addressTypes = (AddressTypeList)(AddressTypes[locale.ISOCode]);
                }
            }
            return(addressTypes);
        }