Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/PrimitiveToken.cs @ 3016

Last change on this file since 3016 was 3016, checked in by epitzer, 14 years ago

Update API docs. (#548)

File size: 1.1 KB
Line 
1using HeuristicLab.Persistence.Interfaces;
2
3namespace 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.