Changeset 17454 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/RangeVM.cs
- Timestamp:
- 02/26/20 13:23:49 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/RangeVM.cs
r17446 r17454 35 35 get => Cast(((Array)Item.Value).GetValue(0)); 36 36 set { 37 SetValue(value, ( (Array)Item.Value).GetValue(1));37 SetValue(value, (T)((Array)Item.Value).GetValue(1)); 38 38 OnPropertyChange(this, nameof(MinValue)); 39 39 } … … 43 43 get => Cast(((Array)Item.Value).GetValue(1)); 44 44 set { 45 SetValue(( (Array)Item.Value).GetValue(0), value);45 SetValue((T)((Array)Item.Value).GetValue(0), value); 46 46 OnPropertyChange(this, nameof(MaxValue)); 47 47 } 48 48 } 49 49 50 private void SetValue( object min, objectmax) =>51 Item.Value = new object[] { min, max };50 private void SetValue(T min, T max) => 51 Item.Value = new T[] { min, max }; 52 52 } 53 53 }
Note: See TracChangeset
for help on using the changeset viewer.