Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Persistence/3.3/Core/TypeMapping.cs @ 1853

Last change on this file since 1853 was 1623, checked in by epitzer, 15 years ago

Namespace refactoring, visibility check (#548)

File size: 588 bytes
Line 
1using System.Collections.Generic;
2
3namespace HeuristicLab.Persistence.Core {
4
5  public class TypeMapping {
6
7    public readonly int Id;
8    public readonly string TypeName;
9    public readonly string Serializer;
10
11    public TypeMapping(int id, string typeName, string serializer) {
12      Id = id;
13      TypeName = typeName;
14      Serializer = serializer;
15    }
16
17    public Dictionary<string, object> GetDict() {
18      return new Dictionary<string, object> {
19        {"id", Id},
20        {"typeName", TypeName},
21        {"serializer", Serializer}};
22    }
23
24  }
25
26}
Note: See TracBrowser for help on using the repository browser.