Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/08/14 15:36:52 (10 years ago)
Author:
rstoll
Message:
  • tuples for sorting were not added to tuples list - bug fixed
  • Standard view for DataGridContenView changed
  • changed SetValues to IList (was IEnumerable) before
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingData.cs

    r10243 r10311  
    111111    }
    112112
    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      }
    115119    }
    116120
Note: See TracChangeset for help on using the changeset viewer.