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/DeSerializer.cs

    r1281 r1314  
    6262
    6363    private Dictionary<Type, IPrimitiveSerializer> primitiveSerializers;
    64     private List<ICustomSerializer> customSerializers;
     64    private List<ICompoundSerializer> customSerializers;
    6565
    6666    delegate void Thunk();
     
    6969    public DeSerializer(
    7070        IEnumerable<IPrimitiveSerializer> primitiveSerializers,
    71         IEnumerable<ICustomSerializer> customSerializers) {
     71        IEnumerable<ICompoundSerializer> customSerializers) {
    7272      id2obj = new Dictionary<int, object>();
    7373      compositeStack = new Stack<IAccessibleObject>();
     
    8282        this.primitiveSerializers.Add(ps.Type, ps);
    8383      }
    84       this.customSerializers = new List<ICustomSerializer>(customSerializers);
     84      this.customSerializers = new List<ICompoundSerializer>(customSerializers);
    8585      this.finalFixes = new List<Thunk>();
    8686    }
     
    112112    private void CompositeEndHandler(IParseToken token) {
    113113      CompositeEnd end = (CompositeEnd)token;
    114       ICustomSerializer customSerializer = this.FindCustomSerializer(end.Type);
     114      ICompoundSerializer customSerializer = this.FindCustomSerializer(end.Type);
    115115      if (customSerializer != null) {
    116116        CustomObject customObject = (CustomObject)compositeStack.Pop();
     
    124124      }
    125125    }
    126     private ICustomSerializer FindCustomSerializer(Type type) {
    127       foreach (ICustomSerializer serializer in customSerializers) {
     126    private ICompoundSerializer FindCustomSerializer(Type type) {
     127      foreach (ICompoundSerializer serializer in customSerializers) {
    128128        if (serializer.CanSerialize(type))
    129129          return serializer;
Note: See TracChangeset for help on using the changeset viewer.