- Timestamp:
- 03/09/09 12:44:51 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/New Persistence Exploration/Persistence/Persistence/DeSerializer.cs
r1281 r1314 62 62 63 63 private Dictionary<Type, IPrimitiveSerializer> primitiveSerializers; 64 private List<IC ustomSerializer> customSerializers;64 private List<ICompoundSerializer> customSerializers; 65 65 66 66 delegate void Thunk(); … … 69 69 public DeSerializer( 70 70 IEnumerable<IPrimitiveSerializer> primitiveSerializers, 71 IEnumerable<IC ustomSerializer> customSerializers) {71 IEnumerable<ICompoundSerializer> customSerializers) { 72 72 id2obj = new Dictionary<int, object>(); 73 73 compositeStack = new Stack<IAccessibleObject>(); … … 82 82 this.primitiveSerializers.Add(ps.Type, ps); 83 83 } 84 this.customSerializers = new List<IC ustomSerializer>(customSerializers);84 this.customSerializers = new List<ICompoundSerializer>(customSerializers); 85 85 this.finalFixes = new List<Thunk>(); 86 86 } … … 112 112 private void CompositeEndHandler(IParseToken token) { 113 113 CompositeEnd end = (CompositeEnd)token; 114 IC ustomSerializer customSerializer = this.FindCustomSerializer(end.Type);114 ICompoundSerializer customSerializer = this.FindCustomSerializer(end.Type); 115 115 if (customSerializer != null) { 116 116 CustomObject customObject = (CustomObject)compositeStack.Pop(); … … 124 124 } 125 125 } 126 private IC ustomSerializer FindCustomSerializer(Type type) {127 foreach (IC ustomSerializer serializer in customSerializers) {126 private ICompoundSerializer FindCustomSerializer(Type type) { 127 foreach (ICompoundSerializer serializer in customSerializers) { 128 128 if (serializer.CanSerialize(type)) 129 129 return serializer;
Note: See TracChangeset
for help on using the changeset viewer.