/// <summary>
        /// Get person genders for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Person genders for specified locale.</returns>
        protected virtual PersonGenderList GetPersonGenders(ILocale locale)
        {
            PersonGenderList personGenders = null;

            if (PersonGenders.ContainsKey(locale.ISOCode))
            {
                personGenders = (PersonGenderList)(PersonGenders[locale.ISOCode]);
            }
            return(personGenders);
        }
Пример #2
0
        /// <summary>
        /// Get person genders for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Person genders for specified locale.</returns>
        protected override PersonGenderList GetPersonGenders(ILocale locale)
        {
            PersonGenderList personGenders = null;

            lock (PersonGenders)
            {
                if (PersonGenders.ContainsKey(locale.ISOCode))
                {
                    personGenders = (PersonGenderList)(PersonGenders[locale.ISOCode]);
                }
            }
            return(personGenders);
        }