source:
trunk/sources/HeuristicLab.Persistence/3.3/Core/TypeMapping.cs
@
1842
Last change on this file since 1842 was 1623, checked in by epitzer, 15 years ago | |
---|---|
File size: 588 bytes |
Rev | Line | |
---|---|---|
[1454] | 1 | using System.Collections.Generic; |
2 | ||
3 | namespace HeuristicLab.Persistence.Core { | |
4 | ||
[1542] | 5 | public class TypeMapping { |
[1623] | 6 | |
[1454] | 7 | public readonly int Id; |
8 | public readonly string TypeName; | |
[1566] | 9 | public readonly string Serializer; |
[1623] | 10 | |
[1454] | 11 | public TypeMapping(int id, string typeName, string serializer) { |
12 | Id = id; | |
13 | TypeName = typeName; | |
14 | Serializer = serializer; | |
15 | } | |
[1623] | 16 | |
[1454] | 17 | public Dictionary<string, object> GetDict() { |
18 | return new Dictionary<string, object> { | |
19 | {"id", Id}, | |
20 | {"typeName", TypeName}, | |
[1566] | 21 | {"serializer", Serializer}}; |
[1454] | 22 | } |
[1623] | 23 | |
[1566] | 24 | } |
[1454] | 25 | |
26 | } |
Note: See TracBrowser
for help on using the repository browser.