- Timestamp:
- 12/20/19 12:44:06 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3044_variableScaling/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Transformations/Transformation.cs
r17180 r17389 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 23 24 using System.Linq; 25 using HEAL.Attic; 24 26 using HeuristicLab.Common; 25 27 using HeuristicLab.Core; 26 28 using HeuristicLab.Data; 27 29 using HeuristicLab.Parameters; 28 using HEAL.Attic;29 30 30 31 namespace HeuristicLab.Problems.DataAnalysis { … … 45 46 public string Column { 46 47 get { return ColumnParameter.Value.Value; } 48 set { 49 if (value == null) throw new ArgumentNullException("column", "The provided value for the column is null."); 50 if (value == Column) return; 51 52 var matchingParameterValue = ColumnParameter.ValidValues.FirstOrDefault(v => v.Value == value); 53 ColumnParameter.Value = matchingParameterValue ?? throw new ArgumentException("The provided value is not valid as the column.", "column"); 54 } 47 55 } 48 56 #endregion
Note: See TracChangeset
for help on using the changeset viewer.