Example #1
0
 public NamedList(int capacity) : this(capacity, new ListIndex <T, string>(
                                           NamedNameInvoker <T> .Instance,
                                           ListIndexFabric.GetNullKey <string>(),
                                           StringComparer.Ordinal,
                                           false))
 {
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Dwf.Tool.LocaleImageList"/> class.
 /// </summary>
 public LocaleImageList()
 {
     Indexes.Add(LocaleImage.KeyInvoker.Instance.Name,
                 new ListIndex <LocaleImage, string>(LocaleImage.KeyInvoker.Instance, ListIndexFabric.GetNullKey <string>(), StringComparer.Ordinal));
 }
Example #3
0
 public LocaleCategory()
 {
     Indexes.Add(LocaleItem.NameInvoker.Instance.Name,
                 new ListIndex <LocaleItem, string>(LocaleItem.NameInvoker.Instance, ListIndexFabric.GetNullKey <string>(), StringComparer.Ordinal));
 }
Example #4
0
 public IListIndex CreateIndex()
 {
     return(ListIndexFabric.Create <object, string>(this));
 }
Example #5
0
 public Locale()
 {
     Indexes.Add(LocaleCategory.NameInvoker.Instance.Name,
                 new ListIndex <LocaleCategory, string>(LocaleCategory.NameInvoker.Instance, ListIndexFabric.GetNullKey <string>(), StringComparer.Ordinal));
     Cultures.Add(CultureInfo.GetCultureInfo("ru-RU"));
     Cultures.Add(CultureInfo.GetCultureInfo("en-US"));
     //try { Cultures.Add(CultureInfo.GetCultureInfo("kk-KZ")); }
     //catch (Exception ex) { Helper.OnException(ex); }
 }
Example #6
0
 public IListIndex CreateIndex()
 {
     return(ListIndexFabric.Create <T, V>(this));
 }