Free cookie consent management tool by TermsFeed Policy Generator

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

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

Update API docs. (#548)

File size: 926 bytes
Line 
1
2namespace HeuristicLab.Persistence.Core.Tokens {
3
4  /// <summary>
5  /// Common base class of <c>BeginToken</c> and <c>EndToken</c>
6  /// that surround a composite element.
7  /// </summary>
8  public abstract class CompositeTokenBase : SerializationTokenBase {
9
10    /// <summary>
11    /// The type's id.
12    /// </summary>
13    public readonly int TypeId;
14
15
16    /// <summary>
17    /// The object's id for references in case it is a reference type.
18    /// </summary>
19    public readonly int? Id;
20
21    /// <summary>
22    /// Initializes a new instance of the <see cref="CompositeTokenBase"/> class.
23    /// </summary>
24    /// <param name="name">The name.</param>
25    /// <param name="typeId">The type id.</param>
26    /// <param name="id">The object id.</param>
27    public CompositeTokenBase(string name, int typeId, int? id)
28      : base(name) {
29      TypeId = typeId;
30      Id = id;
31    }
32  }
33
34}
Note: See TracBrowser for help on using the repository browser.