Exemple #1
0
 /// <summary>
 /// Adds the locale.
 /// </summary>
 /// <param name="locale">The locale.</param>
 public virtual void AddLocale(ILocale locale)
 {
     CurrentLocales.Add((T)locale);
 }
Exemple #2
0
 /// <summary>
 /// Determines whether the specified locale contains locale.
 /// </summary>
 /// <param name="locale">The locale.</param>
 /// <returns>
 ///     <c>true</c> if the specified locale contains locale; otherwise, <c>false</c>.
 /// </returns>
 public virtual bool ContainsLocale(ILocale locale)
 {
     return(CurrentLocales.Contains((T)locale));
 }