Пример #1
0
        public virtual void AddRange(KeyedCollection <T> items)
        {
            if (items == null)
            {
                return;
            }

            AddRange(items.Keys, items.GetItems());
        }
Пример #2
0
 public Enumerator(KeyedCollection <T> coll)
 {
     this.m_KeyedColl = coll;
     this.m_Index     = 0;
     m_Current        = default(T);
 }
Пример #3
0
 public ReadOnlyKeyedCollection(string[] keys, ILightCollection <T> items)
 {
     _coll = new KeyedCollection <T>(keys, items.GetItems());
 }
Пример #4
0
 public ReadOnlyKeyedCollection(IKeyedCollection <T> collection)
 {
     _coll = (KeyedCollection <T>)collection;//new KeyedCollection<T>(collection.Keys, collection.GetItems());
 }
Пример #5
0
 public ReadOnlyKeyedCollection(ILightCollection <T> collection)
 {
     string[] keys = CreateFreeKeys(collection.Count);
     _coll = new KeyedCollection <T>(keys, collection.GetItems());
 }
Пример #6
0
 public ReadOnlyKeyedCollection(string[] keys, T[] array)
 {
     _coll = new KeyedCollection <T>(keys, array);
 }
Пример #7
0
 public TreeCollection(int initialSize)
 {
     _globalCollection = new KeyedCollection <TreeItem <T> >(initialSize);
     _globalValues     = new KeyedCollection <T>(initialSize);
     _rootItems        = new LightCollection <string>();
 }
Пример #8
0
 internal TreeItemEnumerator(ref KeyedCollection <TreeItem <T> > globalCollection, LightCollection <string> rootItems)
 {
     _globalCollection = globalCollection;
     _rootItems        = rootItems;
 }