Esempio n. 1
0
 /// <summary>
 /// Creates a locale instance for the specified culture.
 /// </summary>
 /// <param name="culture">The culture.</param>
 /// <param name="languages">An enumeration of languages.</param>
 /// <param name="scripts">An enumeration of scripts.</param>
 /// <param name="territories">An enumeration of territories.</param>
 public Locale(CultureId culture, IEnumerable<Language> languages, IEnumerable<Script> scripts, IEnumerable<Territory> territories)
 {
     this.languages = new LanguageCollection(culture, languages);
     this.scripts = new ScriptCollection(culture, scripts);
     this.territories = new TerritoryCollection(culture, territories);
     this.Culture = culture;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a locale instance for the specified culture.
 /// </summary>
 /// <param name="culture">The culture.</param>
 public Locale(CultureId culture)
 {
     this.languages = new LanguageCollection(culture);
     this.scripts = new ScriptCollection(culture);
     this.territories = new TerritoryCollection(culture);
     this.Culture = culture;
 }