Changeset 3503
- Timestamp:
- 04/23/10 01:09:39 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/3.3/VariableCreator.cs
r3376 r3503 48 48 foreach (IParameter param in CollectedValues) { 49 49 CurrentScope.Variables.TryGetValue(param.Name, out var); 50 IItem value = param.ActualValue; 50 51 if (var != null) 51 var.Value = (IItem)param.ActualValue.Clone();52 var.Value = value == null ? null : (IItem)value.Clone(); 52 53 else 53 CurrentScope.Variables.Add(new Variable(param.Name, param.Description, (IItem)param.ActualValue.Clone()));54 CurrentScope.Variables.Add(new Variable(param.Name, param.Description, value == null ? null : (IItem)value.Clone())); 54 55 } 55 56 return base.Apply();
Note: See TracChangeset
for help on using the changeset viewer.