- Timestamp:
- 06/25/14 11:03:10 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis/3.4/Dataset.cs
r11002 r11038 187 187 if (!variableValues.TryGetValue(variableName, out list)) 188 188 throw new ArgumentException("The variable " + variableName + " does not exist in the dataset."); 189 List< string> values = list as List<string>;189 List<DateTime> values = list as List<DateTime>; 190 190 if (values == null) throw new ArgumentException("The variable " + variableName + " is not a datetime variable."); 191 191 192 192 //mkommend yield return used to enable lazy evaluation 193 foreach ( stringvalue in values)194 yield return DateTime.Parse(value);193 foreach (DateTime value in values) 194 yield return value; 195 195 } 196 196
Note: See TracChangeset
for help on using the changeset viewer.