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