Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/IntArray2XmlSerializer.cs @ 2115

Last change on this file since 2115 was 1853, checked in by epitzer, 16 years ago

Fix EmptyStorableClass attributes. (#603)

File size: 670 bytes
Line 
1using System;
2using HeuristicLab.Persistence.Core;
3
4namespace HeuristicLab.Persistence.Default.Xml.Compact {
5
6  public abstract class IntArray2XmlSerializerBase<T> : NumberArray2XmlSerializerBase<T> where T : class {
7
8    protected override string FormatValue(object o) {
9      return o.ToString();
10    }
11
12    protected override object ParseValue(string o) {
13      return int.Parse(o);
14    }
15  }
16
17  public class Int1DArray2XmlSerializer : IntArray2XmlSerializerBase<int[]> { }
18
19  public class Int2DArray2XmlSerializer : IntArray2XmlSerializerBase<int[,]> { }
20
21  public class Int3DArray2XmlSerializer : IntArray2XmlSerializerBase<int[, ,]> { }
22
23}
Note: See TracBrowser for help on using the repository browser.