Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/TypeToken.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.2 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Persistence.Interfaces;
6
7namespace 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.