Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/24/09 13:51:57 (15 years ago)
Author:
epitzer
Message:

Implement missing primitive formatter for char and add more comprehensive tests. (#548)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Core/Serializer.cs

    r1625 r1652  
    22using System.Collections;
    33using System;
     4using System.Linq;
    45using HeuristicLab.Persistence.Interfaces;
    56using HeuristicLab.Persistence.Core.Tokens;
    67using HeuristicLab.Persistence.Default.Decomposers.Storable;
     8using System.Text;
    79
    810namespace HeuristicLab.Persistence.Core {
     
    7678      throw new PersistenceException(
    7779          String.Format(
    78           "No suitable method for serializing values of type \"{0}\" found.",
    79           value.GetType().VersionInvariantName()));
     80          "No suitable method for serializing values of type \"{0}\" found\r\n" +
     81          "Formatters:\r\n{1}\r\n" +
     82          "Decomposers:\r\n{2}",
     83          value.GetType().VersionInvariantName(),
     84          string.Join("\r\n", configuration.Formatters.Select(f => f.GetType().VersionInvariantName()).ToArray()),
     85          string.Join("\r\n", configuration.Decomposers.Select(d => d.GetType().VersionInvariantName()).ToArray())
     86          ));
     87
    8088    }
    8189
Note: See TracChangeset for help on using the changeset viewer.