Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 |
|
---|
6 | namespace 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.