Changeset 6702
- Timestamp:
- 09/02/11 16:03:25 (13 years ago)
- Location:
- branches/PersistenceSpeedUp/HeuristicLab.Persistence/3.3
- Files:
-
- 2 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceSpeedUp/HeuristicLab.Persistence/3.3/Core/Tag.cs
r5445 r6702 27 27 /// between composite serializers and the core. 28 28 /// </summary> 29 public class Tag {29 public sealed class Tag { 30 30 31 31 /// <summary> … … 33 33 /// </summary> 34 34 /// <value>The name.</value> 35 public string Name { get; private set; }35 public readonly string Name; 36 36 37 37 /// <summary> … … 39 39 /// </summary> 40 40 /// <value>The value.</value> 41 public object Value { get; set; }41 public readonly object Value; 42 42 43 43 /// <summary> -
branches/PersistenceSpeedUp/HeuristicLab.Persistence/3.3/Core/Tokens/BeginToken.cs
r5445 r6702 21 21 22 22 23 using HeuristicLab.Persistence.Interfaces; 23 24 namespace HeuristicLab.Persistence.Core.Tokens { 24 25 … … 27 28 /// Marks the beginning of a composite element. 28 29 /// </summary> 29 public class BeginToken : CompositeTokenBase { 30 public sealed class BeginToken : ISerializationToken { 31 32 /// <summary> 33 /// The type's id. 34 /// </summary> 35 public readonly int TypeId; 36 37 /// <summary> 38 /// The object's id for references in case it is a reference type. 39 /// </summary> 40 public readonly int? Id; 41 42 /// <summary> 43 /// The token's name. 44 /// </summary> 45 public readonly string Name; 30 46 31 47 /// <summary> … … 35 51 /// <param name="typeId">The type id.</param> 36 52 /// <param name="id">The object id.</param> 37 public BeginToken(string name, int typeId, int? id) : base(name, typeId, id) { } 53 public BeginToken(string name, int typeId, int? id) { 54 Name = name; 55 TypeId = typeId; 56 Id = id; 57 } 38 58 } 39 59 -
branches/PersistenceSpeedUp/HeuristicLab.Persistence/3.3/Core/Tokens/EndToken.cs
r5445 r6702 21 21 22 22 23 using HeuristicLab.Persistence.Interfaces; 23 24 namespace HeuristicLab.Persistence.Core.Tokens { 24 25 … … 26 27 /// Marks the end of a composite element. 27 28 /// </summary> 28 public class EndToken : CompositeTokenBase { 29 30 /// <summary> 31 /// Initializes a new instance of the <see cref="EndToken"/> class. 32 /// </summary> 33 /// <param name="name">The name.</param> 34 /// <param name="typeId">The type id.</param> 35 /// <param name="id">The object id.</param> 36 public EndToken(string name, int typeId, int? id) : base(name, typeId, id) { } 37 } 29 public sealed class EndToken : ISerializationToken { } 38 30 39 31 } -
branches/PersistenceSpeedUp/HeuristicLab.Persistence/3.3/Core/Tokens/MetaInfoBeginToken.cs
r5445 r6702 27 27 /// Start of meta information. 28 28 /// </summary> 29 public class MetaInfoBeginToken : ISerializationToken { }29 public sealed class MetaInfoBeginToken : ISerializationToken { } 30 30 31 31 } -
branches/PersistenceSpeedUp/HeuristicLab.Persistence/3.3/Core/Tokens/MetaInfoEndToken.cs
r5445 r6702 27 27 /// End of meta info. 28 28 /// </summary> 29 public class MetaInfoEndToken : ISerializationToken { }29 public sealed class MetaInfoEndToken : ISerializationToken { } 30 30 31 31 } -
branches/PersistenceSpeedUp/HeuristicLab.Persistence/3.3/Core/Tokens/NulLReferenceToken.cs
r5445 r6702 21 21 22 22 23 using HeuristicLab.Persistence.Interfaces; 23 24 namespace HeuristicLab.Persistence.Core.Tokens { 24 25 … … 26 27 /// Describes a reference to <c>null</c>. 27 28 /// </summary> 28 public class NullReferenceToken : SerializationTokenBase { 29 public sealed class NullReferenceToken : ISerializationToken { 30 31 /// <summary> 32 /// The token's name. 33 /// </summary> 34 public readonly string Name; 29 35 30 36 /// <summary> … … 32 38 /// </summary> 33 39 /// <param name="name">The token name.</param> 34 public NullReferenceToken(string name) : base(name) { } 40 public NullReferenceToken(string name) { 41 Name = name; 42 } 35 43 } 36 44 -
branches/PersistenceSpeedUp/HeuristicLab.Persistence/3.3/Core/Tokens/PrimitiveToken.cs
r5445 r6702 27 27 /// Encapsulated the serialization of a single primitive value. 28 28 /// </summary> 29 public class PrimitiveToken : SerializationTokenBase { 29 public sealed class PrimitiveToken : ISerializationToken { 30 31 /// <summary> 32 /// The token's name. 33 /// </summary> 34 public readonly string Name; 30 35 31 36 /// <summary> … … 51 56 /// <param name="id">The onbject's id.</param> 52 57 /// <param name="serialData">The serialized data.</param> 53 public PrimitiveToken(string name, int typeId, int? id, ISerialData serialData) 54 : base(name) {58 public PrimitiveToken(string name, int typeId, int? id, ISerialData serialData) { 59 Name = name; 55 60 TypeId = typeId; 56 61 Id = id; -
branches/PersistenceSpeedUp/HeuristicLab.Persistence/3.3/Core/Tokens/ReferenceToken.cs
r5445 r6702 21 21 22 22 23 using HeuristicLab.Persistence.Interfaces; 23 24 namespace HeuristicLab.Persistence.Core.Tokens { 24 25 25 26 26 /// <summary> 27 27 /// References a previously used token (composite or primitive). 28 28 /// </summary> 29 public class ReferenceToken : SerializationTokenBase { 29 public sealed class ReferenceToken : ISerializationToken { 30 31 /// <summary> 32 /// The token's name. 33 /// </summary> 34 public readonly string Name; 35 30 36 /// <summary> 31 37 /// The refereced object's id. … … 38 44 /// <param name="name">The name.</param> 39 45 /// <param name="id">The referenced object's id.</param> 40 public ReferenceToken(string name, int id) 41 : base(name) {46 public ReferenceToken(string name, int id) { 47 Name = name; 42 48 Id = id; 43 49 } -
branches/PersistenceSpeedUp/HeuristicLab.Persistence/3.3/HeuristicLab.Persistence-3.3.csproj
r6224 r6702 227 227 <Compile Include="Core\Tokens\MetaInfoEndToken.cs" /> 228 228 <Compile Include="Interfaces\ISerializationToken.cs" /> 229 <Compile Include="Core\Tokens\SerializationTokenBase.cs" />230 <Compile Include="Core\Tokens\CompositeTokenBase.cs" />231 229 <Compile Include="Core\Tokens\BeginToken.cs" /> 232 230 <Compile Include="Core\Tokens\EndToken.cs" />
Note: See TracChangeset
for help on using the changeset viewer.