/// <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); }
/// <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); }