Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive_Milestone3/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/DoubleArray2XmlSerializer.cs @ 4539

Last change on this file since 4539 was 1958, checked in by epitzer, 15 years ago

Updated handling of floating and fixed point numbers, faster and more accurate serialization and parsing. (#646)

File size: 804 bytes
Line 
1using System;
2using HeuristicLab.Persistence.Core;
3using HeuristicLab.Persistence.Default.Xml.Primitive;
4
5namespace HeuristicLab.Persistence.Default.Xml.Compact {
6
7  public abstract class DoubleArray2XmlSerializerBase<T> : NumberArray2XmlSerializerBase<T> where T : class {
8
9    protected override string FormatValue(object o) {
10      return Double2XmlSerializer.FormatG17((double)o);
11    }
12
13    protected override object ParseValue(string o) {
14      return Double2XmlSerializer.ParseG17(o);
15    }
16  }
17
18  public class Double1DArray2XmlSerializer : DoubleArray2XmlSerializerBase<double[]> { }
19
20  public class Double2DArray2XmlSerializer : DoubleArray2XmlSerializerBase<double[,]> { }
21
22  public class Double3DArray2XmlSerializer : DoubleArray2XmlSerializerBase<double[, ,]> { }
23
24}
Note: See TracBrowser for help on using the repository browser.