- Timestamp:
- 08/05/20 05:46:07 (4 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Encoding.cs
r17699 r17718 82 82 } 83 83 84 protected void ReplaceOperators(IEnumerable<IOperator> operators) { 85 encodingOperators.Replace(operators); 86 } 87 84 88 public void ConfigureOperator(IItem @operator) { ConfigureOperators(new[] { @operator }); } 85 89 public virtual void ConfigureOperators(IEnumerable<IItem> operators) { -
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/Results/ResultParameter.cs
r17715 r17718 121 121 if (result.Value != null && resultValue == null) 122 122 throw new InvalidOperationException(string.Format("Type mismatch. Result \"{0}\" does not contain a \"{1}\".", ActualName, typeof(T).GetPrettyName())); 123 123 else if (result.Value == null && DefaultValue != null) { 124 result.Value = resultValue = (T)DefaultValue.Clone(); 125 } 124 126 return resultValue; 125 127 }
Note: See TracChangeset
for help on using the changeset viewer.