Changeset 1456


Ignore:
Timestamp:
03/27/09 16:20:50 (11 years ago)
Author:
epitzer
Message:

Added EnumDecomposer. (#549)

Location:
trunk/sources
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence.Test/NewSerializationTest.cs

    r1454 r1456  
    1010namespace HeuristicLab.Persistence.Test {
    1111
     12  public enum TestEnum { va1, va2, va3, va8 } ;
     13
    1214  public class RootBase {
    1315    [Storable]
    1416    private string baseString = "Serial";
     17    [Storable]
     18    public TestEnum myEnum = TestEnum.va3;
    1519  }
    1620
     
    161165      r.dict.Add("two", 2);
    162166      r.dict.Add("three", 3);
     167      r.myEnum = TestEnum.va1;
    163168      XmlGenerator.Serialize(r, "test");     
    164169      object o = XmlParser.DeSerialize("test");
  • trunk/sources/HeuristicLab.Persistence/HeuristicLab.Persistence.csproj

    r1454 r1456  
    5959    <Compile Include="Core\TypeMapping.cs" />
    6060    <Compile Include="Core\TypeStringBuilder.cs" />
     61    <Compile Include="Default\Decomposers\ArrayDecomposer.cs" />
    6162    <Compile Include="Default\Decomposers\EnumerableDecomposer.cs" />
    62     <Compile Include="Default\Decomposers\ArrayDecomposer.cs" />
     63    <Compile Include="Default\Decomposers\EnumDecomposer.cs" />
    6364    <Compile Include="Default\Decomposers\KeyValuePairDecomposer.cs" />
    6465    <Compile Include="Default\Decomposers\DictionaryDecomposer.cs" />
Note: See TracChangeset for help on using the changeset viewer.