Changeset 3287 for trunk/sources
- Timestamp:
- 04/08/10 20:48:38 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.3/NamedItemCollection.cs
r3286 r3287 42 42 } 43 43 44 [Storable(Name = "RestoreEvents")]45 private object RestoreEvents {46 get { return null; }47 set { RegisterItemEvents(this); }48 }49 50 44 public NamedItemCollection() : base() { } 51 45 public NamedItemCollection(int capacity) : base(capacity) { } 52 46 public NamedItemCollection(IEnumerable<T> collection) : base(collection) { 47 Initialize(); 48 } 49 50 [StorableHook(HookType.AfterDeserialization)] 51 private void Initialize() { 53 52 RegisterItemEvents(this); 54 53 } … … 62 61 foreach (string key in dict.Keys) 63 62 clone.dict.Add(key, (T)cloner.Clone(dict[key])); 63 clone.Initialize(); 64 64 return clone; 65 65 }
Note: See TracChangeset
for help on using the changeset viewer.