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