- Timestamp:
- 04/30/10 02:48:19 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemDictionary.cs
r3550 r3560 55 55 } 56 56 57 [Storable]58 private IObservableDictionary<TKey, TValue> Items {59 get { return dict; }60 set { dict = value; }61 }62 63 57 public ReadOnlyItemDictionary() : base(new ItemDictionary<TKey, TValue>()) { } 64 58 public ReadOnlyItemDictionary(IItemDictionary<TKey, TValue> dictionary) : base(dictionary) { } 65 59 [StorableConstructor] 66 protected ReadOnlyItemDictionary(bool deserializing) { } 67 68 [StorableHook(HookType.AfterDeserialization)] 69 private void Initialize() { 70 RegisterEvents(); 71 } 60 protected ReadOnlyItemDictionary(bool deserializing) : base(deserializing) { } 72 61 73 62 public object Clone() { … … 78 67 cloner.RegisterClonedObject(this, clone); 79 68 clone.dict = (IItemDictionary<TKey, TValue>)((IItemDictionary<TKey, TValue>)dict).Clone(cloner); 80 clone. Initialize();69 clone.RegisterEvents(); 81 70 return clone; 82 71 }
Note: See TracChangeset
for help on using the changeset viewer.