Example #1
0
        private void OnDictionaryReset()
        {
            if (DictionaryChanged != null)
            {
                var eventArgs = NotifyDictionaryChangedEventArgs <string, object> .ForResetAction();

                DictionaryChanged(this, eventArgs);
            }
        }
Example #2
0
 /// <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());
 }