Changeset 4696 for branches/CloningRefactoring/HeuristicLab.Selection
- Timestamp:
- 10/31/10 11:36:07 (14 years ago)
- Location:
- branches/CloningRefactoring/HeuristicLab.Selection/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Selection/3.3/GenderSpecificSelector.cs
r4670 r4696 81 81 82 82 [StorableConstructor] 83 private GenderSpecificSelector(bool deserializing) : base(deserializing) { } 84 [StorableHook(HookType.AfterDeserialization)] 85 private void AfterDeserialization() { 86 Initialize(); 87 } 88 83 protected GenderSpecificSelector(bool deserializing) : base(deserializing) { } 89 84 protected GenderSpecificSelector(GenderSpecificSelector original, Cloner cloner) 90 85 : base(original, cloner) { 91 86 Initialize(); 92 }93 public override IDeepCloneable Clone(Cloner cloner) {94 return new GenderSpecificSelector(this, cloner);95 87 } 96 88 … … 131 123 #endregion 132 124 125 Initialize(); 126 } 127 128 public override IDeepCloneable Clone(Cloner cloner) { 129 return new GenderSpecificSelector(this, cloner); 130 } 131 132 [StorableHook(HookType.AfterDeserialization)] 133 private void AfterDeserialization() { 133 134 Initialize(); 134 135 } -
branches/CloningRefactoring/HeuristicLab.Selection/3.3/OffspringSelector.cs
r4670 r4696 63 63 64 64 [StorableConstructor] 65 private OffspringSelector(bool deserializing) : base(deserializing) { } 66 private OffspringSelector(OffspringSelector original, Cloner cloner) 67 : base(original, cloner) { 68 } 65 protected OffspringSelector(bool deserializing) : base(deserializing) { } 66 protected OffspringSelector(OffspringSelector original, Cloner cloner) : base(original, cloner) { } 69 67 public override IDeepCloneable Clone(Cloner cloner) { 70 68 return new OffspringSelector(this, cloner);
Note: See TracChangeset
for help on using the changeset viewer.