- Timestamp:
- 04/08/09 17:05:17 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact
- Files:
-
- 2 added
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/DoubleArray2XmlFormatters.cs
r1454 r1542 6 6 7 7 [EmptyStorableClass] 8 public class DoubleArray2XmlFormatter : NumberArray2XmlFormatter {8 public class DoubleArray2XmlFormatter : NumberArray2XmlFormatterBase { 9 9 10 10 public override Type Type { … … 14 14 } 15 15 16 protected override string formatValue(object o) {16 protected override string FormatValue(object o) { 17 17 return ((double)o).ToString("r", CultureInfo.InvariantCulture); 18 18 } 19 19 20 protected override object parseValue(string o) {20 protected override object ParseValue(string o) { 21 21 return double.Parse(o); 22 22 } -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/DoubleList2XmlFormatter.cs
r1454 r1542 8 8 9 9 [EmptyStorableClass] 10 public class DoubleList2XmlFormatter : NumberEnumeration2XmlFormatter {10 public class DoubleList2XmlFormatter : NumberEnumeration2XmlFormatterBase { 11 11 12 12 public override Type Type { … … 24 24 } 25 25 26 protected override string formatValue(object o) {26 protected override string FormatValue(object o) { 27 27 return ((double)o).ToString("r", CultureInfo.InvariantCulture); 28 28 } 29 29 30 protected override object parseValue(string o) {30 protected override object ParseValue(string o) { 31 31 return double.Parse(o); 32 32 } -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/IntArray2XmlFormatters.cs
r1454 r1542 5 5 6 6 [EmptyStorableClass] 7 public class IntArray2XmlFormatter : NumberArray2XmlFormatter {7 public class IntArray2XmlFormatter : NumberArray2XmlFormatterBase { 8 8 9 9 public override Type Type { … … 13 13 } 14 14 15 protected override string formatValue(object o) {15 protected override string FormatValue(object o) { 16 16 return o.ToString(); 17 17 } 18 18 19 protected override object parseValue(string o) {19 protected override object ParseValue(string o) { 20 20 return int.Parse(o); 21 21 } -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/IntList2XmlFormatter.cs
r1454 r1542 7 7 8 8 [EmptyStorableClass] 9 public class IntList2XmlFormatter : NumberEnumeration2XmlFormatter {9 public class IntList2XmlFormatter : NumberEnumeration2XmlFormatterBase { 10 10 11 11 public override Type Type { … … 23 23 } 24 24 25 protected override string formatValue(object o) {25 protected override string FormatValue(object o) { 26 26 return o.ToString(); 27 27 } 28 28 29 protected override object parseValue(string o) {29 protected override object ParseValue(string o) { 30 30 return int.Parse(o); 31 31 }
Note: See TracChangeset
for help on using the changeset viewer.