Changeset 1940 for trunk/sources/HeuristicLab.Persistence
- Timestamp:
- 05/29/09 10:44:31 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/DoubleArray2XmlSerializer.cs
r1920 r1940 12 12 13 13 protected override object ParseValue(string o) { 14 if (o == CultureInfo.InvariantCulture.NumberFormat.NaNSymbol) 15 return double.NaN; 14 16 return double.Parse(o, CultureInfo.InvariantCulture); 15 17 } -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/DoubleList2XmlSerializer.cs
r1920 r1940 10 10 11 11 protected override void Add(IEnumerable enumeration, object o) { 12 ((List<double>)enumeration).Add(( int)o);12 ((List<double>)enumeration).Add((double)o); 13 13 } 14 14 … … 22 22 23 23 protected override object ParseValue(string o) { 24 if (o == CultureInfo.InvariantCulture.NumberFormat.NaNSymbol) 25 return double.NaN; 24 26 return double.Parse(o, CultureInfo.InvariantCulture); 25 27 }
Note: See TracChangeset
for help on using the changeset viewer.