- Timestamp:
- 03/18/09 15:15:48 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/New Persistence Exploration/Persistence/Persistence/Tokens.cs
r1355 r1356 2 2 namespace Persistence { 3 3 4 #region Serialization Tokens4 public interface ISerializationToken {} 5 5 6 public interface ISerializationToken {7 }8 6 public class BeginToken : ISerializationToken { 9 7 public readonly string Name; … … 16 14 } 17 15 } 16 18 17 public class EndToken : ISerializationToken { 19 18 public readonly string Name; … … 26 25 } 27 26 } 27 28 28 public class PrimitiveToken : ISerializationToken { 29 29 public readonly string Name; … … 38 38 } 39 39 } 40 40 41 public class ReferenceToken : ISerializationToken { 41 42 public readonly string Name; … … 46 47 } 47 48 } 49 48 50 public class NullReferenceToken : ISerializationToken { 49 51 public readonly string Name; … … 52 54 } 53 55 } 54 #endregion55 56 #region DeSerialization Tokens57 58 public interface IParseToken { }59 60 public class CompositeStart : IParseToken {61 public readonly string Name;62 public readonly string TypeId;63 public readonly int? Id;64 public CompositeStart(string name, string typeId, int? id) {65 Name = name;66 TypeId = typeId;67 Id = id;68 }69 }70 public class CompositeEnd : IParseToken {71 public readonly string Name;72 public readonly string TypeId;73 public readonly int? Id;74 public CompositeEnd(string name, string typeId, int? id) {75 Name = name;76 TypeId = typeId;77 Id = id;78 }79 }80 public class Primitive : IParseToken {81 public readonly string Name;82 public readonly string TypeId;83 public readonly string SerializedValue;84 public readonly int? Id;85 public Primitive(string name, string typeId, string serilaizedValue, int? id) {86 Name = name;87 TypeId = typeId;88 SerializedValue = serilaizedValue;89 Id = id;90 }91 }92 public class Reference : IParseToken {93 public readonly string Name;94 public readonly int Id;95 public Reference(string name, int id) {96 Name = name;97 Id = id;98 }99 }100 public class Null : IParseToken {101 public readonly string Name;102 public Null(string name) {103 Name = name;104 }105 }106 #endregion107 56 108 57 }
Note: See TracChangeset
for help on using the changeset viewer.