Changeset 17317 for branches/2521_ProblemRefactoring/HeuristicLab.Parameters/3.3/FixedValueParameter.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/FixedValueParameter.cs
r17226 r17317 32 32 [StorableType("7787B99D-5F32-4639-B47A-76CB4D204392")] 33 33 public class FixedValueParameter<T> : ValueParameter<T>, IFixedValueParameter<T> where T : class, IItem, new() { 34 IItem IFixedValueParameter.Value { get { return Value; } } 34 35 35 public override T Value { 36 get { return base.Value; } 37 set { throw new NotSupportedException("FixedValueParameters do not support setting their value."); } 36 public override void ForceValue(T value) { 37 throw new NotSupportedException("FixedValueParameters do not support setting their value."); 38 38 } 39 40 IItem IFixedValueParameter.Value { get { return Value; } }41 39 42 40 [StorableConstructor]
Note: See TracChangeset
for help on using the changeset viewer.