- Timestamp:
- 03/18/09 14:51:38 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/New Persistence Exploration/Persistence/Persistence/Tokens.cs
r1339 r1355 6 6 public interface ISerializationToken { 7 7 } 8 public class BeginToken : ISerializationToken { 9 public readonly DataMemberAccessor Accessor; 8 public class BeginToken : ISerializationToken { 9 public readonly string Name; 10 public readonly int? TypeId; 10 11 public readonly int? Id; 11 public BeginToken(DataMemberAccessor accessor, int? id) { 12 Accessor = accessor; 12 public BeginToken(string name, int? typeId, int? id) { 13 Name = name; 14 TypeId = typeId; 13 15 Id = id; 14 16 } 15 17 } 16 18 public class EndToken : ISerializationToken { 17 public readonly DataMemberAccessor Accessor; 19 public readonly string Name; 20 public readonly int? TypeId; 18 21 public readonly int? Id; 19 public EndToken(DataMemberAccessor accessor, int? id) { 20 Accessor = accessor; 22 public EndToken(string name, int? typeId, int? id) { 23 Name = name; 24 TypeId = typeId; 21 25 Id = id; 22 26 } 23 27 } 24 28 public class PrimitiveToken : ISerializationToken { 25 public readonly DataMemberAccessor Accessor;26 public readonly object Data;29 public readonly string Name; 30 public readonly int? TypeId; 27 31 public readonly int? Id; 28 public PrimitiveToken(DataMemberAccessor accessor, object data, int? id) { 29 Accessor = accessor; 30 Data = data; 32 public readonly object SerialData; 33 public PrimitiveToken(string name, int? typeId, object serialData, int? id) { 34 Name = name; 35 TypeId = typeId; 36 SerialData = serialData; 31 37 Id = id; 32 38 } … … 54 60 public class CompositeStart : IParseToken { 55 61 public readonly string Name; 56 public readonly Type Type;62 public readonly string TypeId; 57 63 public readonly int? Id; 58 public CompositeStart(string name, Type type, int? id) {64 public CompositeStart(string name, string typeId, int? id) { 59 65 Name = name; 60 Type = type;66 TypeId = typeId; 61 67 Id = id; 62 68 } … … 64 70 public class CompositeEnd : IParseToken { 65 71 public readonly string Name; 66 public readonly Type Type;72 public readonly string TypeId; 67 73 public readonly int? Id; 68 public CompositeEnd(string name, Type type, int? id) {74 public CompositeEnd(string name, string typeId, int? id) { 69 75 Name = name; 70 Type = type;76 TypeId = typeId; 71 77 Id = id; 72 78 } … … 74 80 public class Primitive : IParseToken { 75 81 public readonly string Name; 76 public readonly Type Type;82 public readonly string TypeId; 77 83 public readonly string SerializedValue; 78 84 public readonly int? Id; 79 public Primitive(string name, Type type, string serilaizedValue, int? id) {85 public Primitive(string name, string typeId, string serilaizedValue, int? id) { 80 86 Name = name; 81 Type = type;87 TypeId = typeId; 82 88 SerializedValue = serilaizedValue; 83 89 Id = id;
Note: See TracChangeset
for help on using the changeset viewer.