- Timestamp:
- 04/30/10 02:48:19 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableDictionary.cs
r3390 r3560 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 28 namespace HeuristicLab.Collections { 29 [StorableClass] 28 30 [Serializable] 29 31 public class ReadOnlyObservableDictionary<TKey, TValue> : IObservableDictionary<TKey, TValue> { 32 [Storable] 30 33 protected IObservableDictionary<TKey, TValue> dict; 31 34 … … 60 63 RegisterEvents(); 61 64 } 65 [StorableConstructor] 66 protected ReadOnlyObservableDictionary(bool deserializing) { } 62 67 #endregion 63 68 … … 111 116 112 117 #region Events 118 [StorableHook(HookType.AfterDeserialization)] 113 119 protected void RegisterEvents() { 114 120 dict.ItemsAdded += new CollectionItemsChangedEventHandler<KeyValuePair<TKey, TValue>>(dict_ItemsAdded);
Note: See TracChangeset
for help on using the changeset viewer.