- Timestamp:
- 04/20/09 17:36:22 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/DoubleArray2XmlFormatters.cs
r1566 r1612 5 5 namespace HeuristicLab.Persistence.Default.Xml.Compact { 6 6 7 public abstract class DoubleArray2XmlFormatterBase<T> : NumberArray2XmlFormatterBase<T> {7 public abstract class DoubleArray2XmlFormatterBase<T> : NumberArray2XmlFormatterBase<T> where T : class{ 8 8 9 9 protected override string FormatValue(object o) { -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/IntArray2XmlFormatters.cs
r1566 r1612 4 4 namespace HeuristicLab.Persistence.Default.Xml.Compact { 5 5 6 public abstract class IntArray2XmlFormatterBase<T> : NumberArray2XmlFormatterBase<T> {6 public abstract class IntArray2XmlFormatterBase<T> : NumberArray2XmlFormatterBase<T> where T : class{ 7 7 8 8 protected override string FormatValue(object o) { -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/NumberArray2XmlFormatterBase.cs
r1566 r1612 6 6 namespace HeuristicLab.Persistence.Default.Xml.Compact { 7 7 8 public abstract class NumberArray2XmlFormatterBase<T> : FormatterBase<T, XmlString> {8 public abstract class NumberArray2XmlFormatterBase<T> : FormatterBase<T, XmlString> where T : class { 9 9 10 10 protected virtual string Separator { get { return ";"; } } … … 12 12 protected abstract object ParseValue(string o); 13 13 14 public override XmlString Format(T t) { 15 object o = (object)t; 16 Array a = (Array)o; 14 public override XmlString Format(T t) { 15 Array a = (Array)(object)t; 17 16 int[] lengths = new int[a.Rank]; 18 17 int[] lowerBounds = new int[a.Rank]; … … 75 74 } 76 75 } 77 } 78 object o = a; 79 return (T)o; 76 } 77 return (T)(object)a; 80 78 } 81 79 }
Note: See TracChangeset
for help on using the changeset viewer.