Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/20/09 17:36:22 (16 years ago)
Author:
epitzer
Message:

namespace refactoring (#548)

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  
    55namespace HeuristicLab.Persistence.Default.Xml.Compact {
    66
    7   public abstract class DoubleArray2XmlFormatterBase<T> : NumberArray2XmlFormatterBase<T> {
     7  public abstract class DoubleArray2XmlFormatterBase<T> : NumberArray2XmlFormatterBase<T> where T : class{
    88
    99    protected override string FormatValue(object o) {
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/IntArray2XmlFormatters.cs

    r1566 r1612  
    44namespace HeuristicLab.Persistence.Default.Xml.Compact {
    55
    6   public abstract class IntArray2XmlFormatterBase<T> : NumberArray2XmlFormatterBase<T> {
     6  public abstract class IntArray2XmlFormatterBase<T> : NumberArray2XmlFormatterBase<T> where T : class{
    77
    88    protected override string FormatValue(object o) {
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/NumberArray2XmlFormatterBase.cs

    r1566 r1612  
    66namespace HeuristicLab.Persistence.Default.Xml.Compact {
    77
    8   public abstract class NumberArray2XmlFormatterBase<T> : FormatterBase<T, XmlString> {
     8  public abstract class NumberArray2XmlFormatterBase<T> : FormatterBase<T, XmlString> where T : class {
    99
    1010    protected virtual string Separator { get { return ";"; } }
     
    1212    protected abstract object ParseValue(string o);
    1313
    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;
    1716      int[] lengths = new int[a.Rank];
    1817      int[] lowerBounds = new int[a.Rank];
     
    7574          }
    7675        }
    77       }
    78       object o = a;
    79       return (T)o;
     76      }     
     77      return (T)(object)a;
    8078    }
    8179  }
Note: See TracChangeset for help on using the changeset viewer.