Changeset 4725 for trunk/sources/HeuristicLab.Optimization
- Timestamp:
- 11/06/10 02:34:05 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization/3.3/Result.cs
r4722 r4725 75 75 } 76 76 77 [StorableConstructor] 78 private Result(bool deserializing) : base(deserializing) { } 79 private Result(Result original, Cloner cloner) 80 : base(original, cloner) { 81 dataType = original.dataType; 82 value = cloner.Clone(original.value); 83 Initialize(); 84 } 77 85 public Result() 78 86 : base("Anonymous") { … … 102 110 Initialize(); 103 111 } 104 [StorableConstructor] 105 private Result(bool deserializing) : base(deserializing) { } 112 106 113 [StorableHook(HookType.AfterDeserialization)] 107 114 private void AfterDeserialization() { 108 115 Initialize(); 109 116 } 110 private Result(Result original, Cloner cloner) 111 : base(original, cloner) { 112 value = cloner.Clone(original.value); 113 Initialize(); 114 } 117 115 118 public override IDeepCloneable Clone(Cloner cloner) { 116 119 return new Result(this, cloner);
Note: See TracChangeset
for help on using the changeset viewer.