Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 1835 was 1823, checked in by epitzer, 16 years ago

Namespace refactoring: rename formatters & decomposers -> primitive and composite serializers. (#603)

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