Example #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);
        }
Example #2
0
 public KeyItemEnumerator(KeyItemCollection <Key, Object> parent)
 {
     this.parent = parent;
 }
Example #3
0
 public void Dispose()
 {
     parent  = null;
     arrKeys = null;
     GC.SuppressFinalize(this);
 }
Example #4
0
 public KeyValueEntryEnumerator(KeyItemCollection <Key, Object> parent)
 {
     this.parent = parent;
     ((IEnumerator)this).Reset();
 }
Example #5
0
 public KeyValuePairEnumerator(KeyItemCollection <Key, Object> parent)
 {
     this.parent = parent;
     this.Reset();
 }