Changeset 17381 for branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/SolutionContext.cs
- Timestamp:
- 12/18/19 15:06:18 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/SolutionContext.cs
r17366 r17381 23 23 using System; 24 24 using System.Collections.Generic; 25 25 using System.Linq; 26 26 using HEAL.Attic; 27 27 using HeuristicLab.Common; … … 58 58 59 59 public SolutionContext(SolutionContext<TEncodedSolution> original, Cloner cloner) : base(original, cloner) { 60 //TODO clone data dictionary61 60 EncodedSolution = cloner.Clone(original.EncodedSolution); 62 61 EvaluationResult = cloner.Clone(original.EvaluationResult); 62 63 64 data = original.data.ToDictionary(entry => entry.Key, 65 entry => entry.Value is DeepCloneable ? cloner.Clone((DeepCloneable)entry.Value) : entry.Value); 63 66 } 64 67
Note: See TracChangeset
for help on using the changeset viewer.