Line | |
---|
1 | using HeuristicLab.Persistence.Interfaces;
|
---|
2 |
|
---|
3 | namespace HeuristicLab.Persistence.Core.Tokens {
|
---|
4 |
|
---|
5 | /// <summary>
|
---|
6 | /// Encapsulated the serialization of a single primitive value.
|
---|
7 | /// </summary>
|
---|
8 | public class PrimitiveToken : SerializationTokenBase {
|
---|
9 |
|
---|
10 | /// <summary>
|
---|
11 | /// The type's id.
|
---|
12 | /// </summary>
|
---|
13 | public readonly int TypeId;
|
---|
14 |
|
---|
15 | /// <summary>
|
---|
16 | /// The object's id.
|
---|
17 | /// </summary>
|
---|
18 | public readonly int? Id;
|
---|
19 |
|
---|
20 | /// <summary>
|
---|
21 | /// The serialized data.
|
---|
22 | /// </summary>
|
---|
23 | public readonly ISerialData SerialData;
|
---|
24 |
|
---|
25 | /// <summary>
|
---|
26 | /// Initializes a new instance of the <see cref="PrimitiveToken"/> class.
|
---|
27 | /// </summary>
|
---|
28 | /// <param name="name">The name.</param>
|
---|
29 | /// <param name="typeId">The type's id.</param>
|
---|
30 | /// <param name="id">The onbject's id.</param>
|
---|
31 | /// <param name="serialData">The serialized data.</param>
|
---|
32 | public PrimitiveToken(string name, int typeId, int? id, ISerialData serialData)
|
---|
33 | : base(name) {
|
---|
34 | TypeId = typeId;
|
---|
35 | Id = id;
|
---|
36 | SerialData = serialData;
|
---|
37 | }
|
---|
38 | }
|
---|
39 |
|
---|
40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.