Last change
on this file since 1469 was
1454,
checked in by epitzer, 15 years ago
|
merge persistence exploration branch into trunk as HL plugin. (#506)
|
File size:
631 bytes
|
Line | |
---|
1 | using System.Collections.Generic;
|
---|
2 |
|
---|
3 | namespace HeuristicLab.Persistence.Core {
|
---|
4 |
|
---|
5 | public struct 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.