Line | |
---|
1 | using HeuristicLab.Persistence.Interfaces;
|
---|
2 |
|
---|
3 | namespace HeuristicLab.Persistence.Core.Tokens {
|
---|
4 |
|
---|
5 |
|
---|
6 | /// <summary>
|
---|
7 | /// References a previously used token (composite or primitive).
|
---|
8 | /// </summary>
|
---|
9 | public class ReferenceToken : SerializationTokenBase {
|
---|
10 | /// <summary>
|
---|
11 | /// The refereced object's id.
|
---|
12 | /// </summary>
|
---|
13 | public readonly int Id;
|
---|
14 |
|
---|
15 | /// <summary>
|
---|
16 | /// Initializes a new instance of the <see cref="ReferenceToken"/> class.
|
---|
17 | /// </summary>
|
---|
18 | /// <param name="name">The name.</param>
|
---|
19 | /// <param name="id">The referenced object's id.</param>
|
---|
20 | public ReferenceToken(string name, int id)
|
---|
21 | : base(name) {
|
---|
22 | Id = id;
|
---|
23 | }
|
---|
24 | }
|
---|
25 |
|
---|
26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.