Esempio n. 1
0
        public virtual void AddRange(KeyedCollection <T> items)
        {
            if (items == null)
            {
                return;
            }

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