Free cookie consent management tool by TermsFeed Policy Generator

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

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

Format white space. (Ctrl-K, Ctrl-D) (#548)

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