- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/CloningRefactoring (added) merged: 4656-4693,4696-4697,4711-4714,4718-4719
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyCheckedItemList.cs
r4290 r4722 23 23 using System.Collections.Generic; 24 24 using HeuristicLab.Collections; 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 … … 33 34 } 34 35 36 [StorableConstructor] 37 protected ReadOnlyCheckedItemList(bool deserializing) : base(deserializing) { } 38 protected ReadOnlyCheckedItemList(ReadOnlyCheckedItemList<T> original, Cloner cloner) 39 : base(original, cloner) { 40 CheckedItemList.CheckedItemsChanged += new CollectionItemsChangedEventHandler<IndexedItem<T>>(list_CheckedItemsChanged); 41 } 35 42 public ReadOnlyCheckedItemList() : base(new CheckedItemList<T>()) { } 36 43 public ReadOnlyCheckedItemList(ICheckedItemList<T> list) … … 39 46 } 40 47 41 [StorableConstructor]42 protected ReadOnlyCheckedItemList(bool deserializing) : base(deserializing) { }43 48 [StorableHook(HookType.AfterDeserialization)] 44 private void AfterDeserialization Hook() {49 private void AfterDeserialization() { 45 50 CheckedItemList.CheckedItemsChanged += new CollectionItemsChangedEventHandler<IndexedItem<T>>(list_CheckedItemsChanged); 46 51 } 47 52 48 public override Common.IDeepCloneable Clone(Common.Cloner cloner) { 49 ReadOnlyCheckedItemList<T> clone = (ReadOnlyCheckedItemList<T>)base.Clone(cloner); 50 clone.CheckedItemList.CheckedItemsChanged += new CollectionItemsChangedEventHandler<IndexedItem<T>>(clone.list_CheckedItemsChanged); 51 return clone; 53 public override IDeepCloneable Clone(Cloner cloner) { 54 return new ReadOnlyCheckedItemList<T>(this, cloner); 52 55 } 53 56
Note: See TracChangeset
for help on using the changeset viewer.