Last change
on this file since 3036 was
3036,
checked in by epitzer, 14 years ago
|
make most serializers internal and complete API documentation (#548)
|
File size:
678 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using HeuristicLab.Persistence.Core;
|
---|
3 |
|
---|
4 | namespace HeuristicLab.Persistence.Default.Xml.Compact {
|
---|
5 |
|
---|
6 | internal 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 | internal class Int1DArray2XmlSerializer : IntArray2XmlSerializerBase<int[]> { }
|
---|
18 |
|
---|
19 | internal class Int2DArray2XmlSerializer : IntArray2XmlSerializerBase<int[,]> { }
|
---|
20 |
|
---|
21 | internal class Int3DArray2XmlSerializer : IntArray2XmlSerializerBase<int[, ,]> { }
|
---|
22 |
|
---|
23 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.