Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/15/09 12:29:13 (16 years ago)
Author:
epitzer
Message:

Namespace refactoring: rename formatters & decomposers -> primitive and composite serializers. (#603)

Location:
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers
Files:
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/NumberEnumerable2StringSerializer.cs

    r1805 r1823  
    66using System.Globalization;
    77using System.Text;
    8 using HeuristicLab.Persistence.Default.Decomposers.Storable;
     8using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    99using HeuristicLab.Persistence.Auxiliary;
    1010
    11 namespace HeuristicLab.Persistence.Default.Decomposers {
     11namespace HeuristicLab.Persistence.Default.CompositeSerializers {
    1212
    1313  [EmptyStorableClass]
    14   public class NumberEnumerable2StringDecomposer : IDecomposer {
     14  public class NumberEnumerable2StringSerializer : ICompositeSerializer {
    1515
    1616    public int Priority {
     
    1818    }
    1919
    20     private static readonly Number2StringDecomposer numberConverter =
    21       new Number2StringDecomposer();
     20    private static readonly Number2StringSerializer numberConverter =
     21      new Number2StringSerializer();
    2222
    2323    private static readonly Dictionary<Type, Type> interfaceCache = new Dictionary<Type, Type>();
     
    2929        if (iface.IsGenericType &&
    3030          iface.GetGenericTypeDefinition() == typeof(IEnumerable<>) &&
    31           numberConverter.CanDecompose(iface.GetGenericArguments()[0])) {
     31          numberConverter.CanSerialize(iface.GetGenericArguments()[0])) {
    3232          interfaceCache.Add(type, iface);
    3333          return iface;
     
    5353    }
    5454
    55     public bool CanDecompose(Type type) {
     55    public bool CanSerialize(Type type) {
    5656      return
    5757        ReflectionTools.HasDefaultConstructor(type) &&
Note: See TracChangeset for help on using the changeset viewer.