Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- overwrote the method `GetActualValue` in `ValueLookupParameter`, it will return its configured value if the `ExecutionContext` is null

git-svn-id: https://src.heuristiclab.com/svn/core/trunk@18138 2abd9481-f8db-48e9-bd25-06bc13291c1b
  • Loading branch information
DavidPiringer committed Dec 16, 2021
1 parent 1069952 commit 9432ec2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions HeuristicLab.Parameters/3.3/ValueLookupParameter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ public override IDeepCloneable Clone(Cloner cloner) {
return new ValueLookupParameter<T>(this, cloner);
}

protected override IItem GetActualValue() {
if (ExecutionContext == null)
return Value;
return base.GetActualValue();
}

public override string ToString() {
if (Value != null)
return Name + ": " + Value.ToString();
Expand Down

0 comments on commit 9432ec2

Please sign in to comment.