Line | |
---|
1 | using System.Collections.Generic;
|
---|
2 |
|
---|
3 | namespace 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.