Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/ByteArray2XmlSerializer.cs @ 3002

Last change on this file since 3002 was 2940, checked in by mkommend, 15 years ago

added bitmap serializer (ticket #892)

File size: 690 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace HeuristicLab.Persistence.Default.Xml.Compact {
7  public class ByteArray2XmlSerializer<T> : NumberArray2XmlSerializerBase<T> where T : class {
8    protected override string FormatValue(object o) {
9      return o.ToString();
10    }
11
12    protected override object ParseValue(string o) {
13      return byte.Parse(o);
14    }
15  }
16
17  public class Byte1DArray2XmlSerializer : ByteArray2XmlSerializer<byte[]> { }
18
19  public class Bytet2DArray2XmlSerializer : ByteArray2XmlSerializer<byte[,]> { }
20
21  public class Byte3DArray2XmlSerializer : ByteArray2XmlSerializer<byte[, ,]> { }
22}
Note: See TracBrowser for help on using the repository browser.