Changeset 17317 for branches/2521_ProblemRefactoring/HeuristicLab.Parameters/3.3/OptionalValueParameter.cs
- Timestamp:
- 10/04/19 16:03:51 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Parameters/3.3/OptionalValueParameter.cs
r17226 r17317 46 46 set { 47 47 if (ReadOnly) throw new InvalidOperationException("Cannot set the value of a readonly parameter."); 48 if (value != this.value) { 49 DeregisterValueEvents(); 50 this.value = value; 51 RegisterValueEvents(); 52 OnValueChanged(); 53 } 48 DoSetValue(value); 49 } 50 } 51 public virtual void ForceValue(T value) { 52 DoSetValue(value); 53 } 54 private void DoSetValue(T value) { 55 if (value != this.value) { 56 DeregisterValueEvents(); 57 this.value = value; 58 RegisterValueEvents(); 59 OnValueChanged(); 54 60 } 55 61 }
Note: See TracChangeset
for help on using the changeset viewer.