private void OnDictionaryReset() { if (DictionaryChanged != null) { var eventArgs = NotifyDictionaryChangedEventArgs <string, object> .ForResetAction(); DictionaryChanged(this, eventArgs); } }
/// <summary>Removes all items from the instance.</summary> /// <exception cref="NotSupportedException">The instance is <c>read-only</c>.</exception> public void Clear() { _items.Clear(); OnDictionaryChanged(NotifyDictionaryChangedEventArgs <string, object> .ForResetAction()); }