Changeset 10311 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingData.cs
- Timestamp:
- 01/08/14 15:36:52 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingData.cs
r10243 r10311 111 111 } 112 112 113 public void SetValues<T>(string variableName, IEnumerable<T> values) { 114 variableValues[variableName] = values.ToList(); 113 public void SetValues<T>(string variableName, IList<T> values) { 114 if(IsType<T>(variableName)){ 115 variableValues[variableName] = (IList) values; 116 }else{ 117 throw new ArgumentException("The datatype of column " + variableName + " must be of type " + variableValues[variableName].GetType().Name + " but was " + typeof(T).Name); 118 } 115 119 } 116 120
Note: See TracChangeset
for help on using the changeset viewer.