Changeset 3687 for trunk/sources/HeuristicLab.Optimization.Operators
- Timestamp:
- 05/06/10 23:34:36 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.Optimization.Operators/3.3/ResultsCollector.cs ΒΆ
r3664 r3687 59 59 IItem value = param.ActualValue; 60 60 if (value != null) { 61 results.TryGetValue(param.Name, out result); 61 ILookupParameter lookupParam = param as ILookupParameter; 62 string name = lookupParam != null ? lookupParam.TranslatedName : param.Name; 63 64 results.TryGetValue(name, out result); 62 65 if (result != null) 63 66 result.Value = copy ? (IItem)value.Clone() : value; 64 67 else 65 results.Add(new Result( param.Name, param.Description, copy ? (IItem)value.Clone() : value));68 results.Add(new Result(name, param.Description, copy ? (IItem)value.Clone() : value)); 66 69 } 67 70 }
Note: See TracChangeset
for help on using the changeset viewer.