Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/31/17 17:03:27 (8 years ago)
Author:
bburlacu
Message:

#2723: Fix exception in Dataset.cs when calling the ToModifiable() method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Dataset.cs

    r15013 r15015  
    114114      foreach (var v in variableNames) {
    115115        if (VariableHasType<double>(v)) {
    116           values.Add(new List<double>((List<double>)variableValues[v]));
     116          values.Add(new List<double>((IList<double>)variableValues[v]));
    117117        } else if (VariableHasType<string>(v)) {
    118           values.Add(new List<string>((List<string>)variableValues[v]));
     118          values.Add(new List<string>((IList<string>)variableValues[v]));
    119119        } else if (VariableHasType<DateTime>(v)) {
    120           values.Add(new List<DateTime>((List<DateTime>)variableValues[v]));
     120          values.Add(new List<DateTime>((IList<DateTime>)variableValues[v]));
    121121        } else {
    122122          throw new ArgumentException("Unknown variable type.");
Note: See TracChangeset for help on using the changeset viewer.