- Timestamp:
- 03/05/14 17:31:24 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingData.cs
r10550 r10554 103 103 var copy = new Dictionary<int, IList>(variableValues); 104 104 for (int i = 0; i < original.Count; i++) { 105 if (variableValues[i] is IList<double>) { 106 copy[i] = new List<double>((IList<double>)variableValues[i]); 107 } else if (variableValues[i] is IList<DateTime>) { 108 copy[i] = new List<DateTime>((IList<DateTime>)variableValues[i]); 109 } else if (variableValues[i] is IList<string>) { 110 copy[i] = new List<string>((IList<string>)variableValues[i]); 111 } else { 112 throw new NotImplementedException("The Type is not Supported"); 113 } 105 variableValues[i] = (IList)Activator.CreateInstance(original[i].GetType(), original[i]); 114 106 } 115 107 return copy;
Note: See TracChangeset
for help on using the changeset viewer.