Added ObservableSet and ReadOnlySet wrappers (no unit tests yet)
git-svn-id: file:///srv/devel/repo-conversion/nusu@256 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
5e4de7f027
commit
2d04ad7b49
7 changed files with 508 additions and 250 deletions
|
|
@ -36,15 +36,15 @@ namespace Nuclex.Support.Collections {
|
|||
#endif
|
||||
public class ObservableDictionary<TKey, TValue> :
|
||||
#if !NO_SERIALIZATION
|
||||
ISerializable,
|
||||
ISerializable,
|
||||
IDeserializationCallback,
|
||||
#endif
|
||||
IDictionary<TKey, TValue>,
|
||||
IDictionary<TKey, TValue>,
|
||||
IDictionary,
|
||||
#if !NO_SPECIALIZED_COLLECTIONS
|
||||
INotifyCollectionChanged,
|
||||
INotifyCollectionChanged,
|
||||
#endif
|
||||
IObservableCollection<KeyValuePair<TKey, TValue>> {
|
||||
IObservableCollection<KeyValuePair<TKey, TValue>> {
|
||||
|
||||
#if !NO_SERIALIZATION
|
||||
#region class SerializedDictionary
|
||||
|
|
@ -300,15 +300,16 @@ namespace Nuclex.Support.Collections {
|
|||
|
||||
/// <summary>Fires the 'Clearing' event</summary>
|
||||
protected virtual void OnClearing() {
|
||||
if(Clearing != null)
|
||||
if(Clearing != null) {
|
||||
Clearing(this, EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Fires the 'Cleared' event</summary>
|
||||
protected virtual void OnCleared() {
|
||||
if(Cleared != null)
|
||||
if(Cleared != null) {
|
||||
Cleared(this, EventArgs.Empty);
|
||||
|
||||
}
|
||||
#if !NO_SPECIALIZED_COLLECTIONS
|
||||
if(CollectionChanged != null) {
|
||||
CollectionChanged(this, Constants.NotifyCollectionResetEventArgs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue