Changeset 3139 for trunk/sources/HeuristicLab.Operators
- Timestamp:
- 03/20/10 06:18:48 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/3.3/ResultsCollector.cs
r3095 r3139 45 45 IVariable var; 46 46 foreach (IParameter param in CollectedValues) { 47 results.TryGetValue(param.Name, out var); 48 if (var != null) 49 var.Value = (IItem)param.ActualValue; 50 else 51 results.Add(new Variable(param.Name, param.Description, param.ActualValue)); 47 IItem value = param.ActualValue; 48 if (value != null) { 49 results.TryGetValue(param.Name, out var); 50 if (var != null) 51 var.Value = value; 52 else 53 results.Add(new Variable(param.Name, param.Description, value)); 54 } 52 55 } 53 56 return base.Apply();
Note: See TracChangeset
for help on using the changeset viewer.