Пример #1
0
 /// <summary>
 /// Set person genders for specified locale.
 /// </summary>
 /// <param name="personGenders">Person genders.</param>
 /// <param name="locale">Locale.</param>
 /// <returns>Person genders for specified locale.</returns>
 protected override void SetPersonGenders(PersonGenderList personGenders,
                                          ILocale locale)
 {
     lock (PhoneNumberTypes)
     {
         PersonGenders[locale.ISOCode] = personGenders;
     }
 }
        /// <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);
        }
Пример #3
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);
        }
 /// <summary>
 /// Set person genders for specified locale.
 /// </summary>
 /// <param name="personGenders">Person genders.</param>
 /// <param name="locale">Locale.</param>
 protected virtual void SetPersonGenders(PersonGenderList personGenders,
                                         ILocale locale)
 {
     PersonGenders[locale.ISOCode] = personGenders;
 }