Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using HeuristicLab.Persistence.Interfaces;
|
---|
6 |
|
---|
7 | namespace HeuristicLab.Persistence.Core.Tokens {
|
---|
8 |
|
---|
9 | /// <summary>
|
---|
10 | /// A token containing type information and mapping.
|
---|
11 | /// </summary>
|
---|
12 | public class TypeToken : ISerializationToken {
|
---|
13 |
|
---|
14 | /// <summary>
|
---|
15 | /// The type id.
|
---|
16 | /// </summary>
|
---|
17 | public readonly int Id;
|
---|
18 |
|
---|
19 | /// <summary>
|
---|
20 | /// The type's full name.
|
---|
21 | /// </summary>
|
---|
22 | public readonly string TypeName;
|
---|
23 |
|
---|
24 | /// <summary>
|
---|
25 | /// The full type name of the serialized used to
|
---|
26 | /// serialize the type.
|
---|
27 | /// </summary>
|
---|
28 | public readonly string Serializer;
|
---|
29 |
|
---|
30 | /// <summary>
|
---|
31 | /// Initializes a new instance of the <see cref="TypeToken"/> class.
|
---|
32 | /// </summary>
|
---|
33 | /// <param name="id">The type id.</param>
|
---|
34 | /// <param name="typeName">Full name of the type.</param>
|
---|
35 | /// <param name="serializer">The full name of the serializer
|
---|
36 | /// used to serialize the type.</param>
|
---|
37 | public TypeToken(int id, string typeName, string serializer) {
|
---|
38 | Id = id;
|
---|
39 | TypeName = typeName;
|
---|
40 | Serializer = serializer;
|
---|
41 | }
|
---|
42 | }
|
---|
43 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.