Exemplo n.º 1
0
        /// <summary>
        /// Creates a new object that is a copy of the current instance.
        /// </summary>
        /// <returns>
        /// A new object that is a copy of this instance.
        /// </returns>
        public virtual object Clone()
        {
            KeyItemCollection <Key, Object> clone = new KeyItemCollection <Key, Object>();

            clone.items     = new List <Object>(items);
            clone.positions = new Dictionary <Key, int>(positions);
            return(clone);
        }
Exemplo n.º 2
0
 public KeyItemEnumerator(KeyItemCollection <Key, Object> parent)
 {
     this.parent = parent;
 }
Exemplo n.º 3
0
 public void Dispose()
 {
     parent  = null;
     arrKeys = null;
     GC.SuppressFinalize(this);
 }
Exemplo n.º 4
0
 public KeyValueEntryEnumerator(KeyItemCollection <Key, Object> parent)
 {
     this.parent = parent;
     ((IEnumerator)this).Reset();
 }
Exemplo n.º 5
0
 public KeyValuePairEnumerator(KeyItemCollection <Key, Object> parent)
 {
     this.parent = parent;
     this.Reset();
 }