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