Line | |
---|
1 | using System;
|
---|
2 | using HeuristicLab.Persistence.Core;
|
---|
3 |
|
---|
4 | namespace 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.