/// <summary> /// Clears this instance. /// </summary> public virtual void Clear() { _items.Clear(); _keys.Clear(); if (CollectionClear != null) { CollectionClear(this, new EventArgs()); } if (CollectionChanged != null) { CollectionChanged(this, new EventArgs()); } }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { _current = null; _globalCollection.Clear(); _rootItems.Clear(); }