Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/10/10 16:37:52 (14 years ago)
Author:
epitzer
Message:

add justifications for rejecting a type for serialization in ICompositeSerializer (#548)

File:
1 edited

Legend:

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

    r1823 r2993  
    44using System.Collections.Generic;
    55using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     6using System.Text;
    67
    78namespace HeuristicLab.Persistence.Default.CompositeSerializers {
     
    1617    public bool CanSerialize(Type type) {
    1718      return type.IsArray || type == typeof(Array);
     19    }
     20
     21    public string JustifyRejection(Type type) {
     22      return "not an array and not of type System.Array";
    1823    }
    1924
Note: See TracChangeset for help on using the changeset viewer.