Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/09/09 12:44:51 (15 years ago)
Author:
epitzer
Message:

rename ICustomSerializer to ICompoundSerializer. (#506)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/New Persistence Exploration/Persistence/Persistence/Serializer.cs

    r1280 r1314  
    1111    private Dictionary<object, int> obj2id;
    1212    private Dictionary<Type, IPrimitiveSerializer> primitiveSerializers;
    13     private List<ICustomSerializer> customSerializers;
     13    private List<ICompoundSerializer> customSerializers;
    1414
    1515    public Serializer(object obj, IEnumerable<IPrimitiveSerializer> primitiveSerializers) :
     
    2323        this.primitiveSerializers.Add(serializer.Type, serializer);
    2424      }
    25       this.customSerializers = new List<ICustomSerializer>();
     25      this.customSerializers = new List<ICompoundSerializer>();
    2626      customSerializers.Add(new EnumerableSerializer());
    2727      customSerializers.Add(new ArraySerializer());
     
    5454        this.obj2id.Add(value, id);
    5555        yield return new BeginToken(accessor, id);
    56         ICustomSerializer customSerializer = this.FindCustomSerializer(value.GetType());
     56        ICompoundSerializer customSerializer = this.FindCustomSerializer(value.GetType());
    5757        if (customSerializer != null) {
    5858          foreach (object obj in customSerializer.Serialize(value)) {
     
    7373    }
    7474
    75     private ICustomSerializer FindCustomSerializer(Type type) {
    76       foreach (ICustomSerializer s in customSerializers) {
     75    private ICompoundSerializer FindCustomSerializer(Type type) {
     76      foreach (ICompoundSerializer s in customSerializers) {
    7777        if (s.CanSerialize(type))
    7878          return s;
Note: See TracChangeset for help on using the changeset viewer.