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

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