Free cookie consent management tool by TermsFeed Policy Generator

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

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

Numerous small changes, coding conventions, renames, mini refactoring (#548)

File size: 630 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.