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