Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/IntArray2XmlFormatters.cs @ 1652

Last change on this file since 1652 was 1625, checked in by epitzer, 16 years ago

Added PersistenceException used consistently for all error conditions in the persistence framework (#548)

File size: 795 bytes
Line 
1using System;
2using HeuristicLab.Persistence.Core;
3using HeuristicLab.Persistence.Default.Decomposers.Storable;
4
5namespace HeuristicLab.Persistence.Default.Xml.Compact {
6
7  public abstract class IntArray2XmlFormatterBase<T> : NumberArray2XmlFormatterBase<T> where T : class{
8
9    protected override string FormatValue(object o) {
10      return o.ToString();
11    }
12
13    protected override object ParseValue(string o) {
14      return int.Parse(o);
15    }
16  }
17
18  [EmptyStorableClass]
19  public class Int1DArray2XmlFormatter : IntArray2XmlFormatterBase<int[]> { }
20
21  [EmptyStorableClass]
22  public class Int2DArray2XmlFormatter : IntArray2XmlFormatterBase<int[,]> { }
23
24  [EmptyStorableClass]
25  public class Int3DArray2XmlFormatter : IntArray2XmlFormatterBase<int[, ,]> { }
26
27}
Note: See TracBrowser for help on using the repository browser.