Sample EDN reader handler. Has the following custom behavior - Converts EDN maps to Dictionary instead of EDNMap. - Handles System.TimeZoneInfo via a special tag. See the SampleCustomPrinter for writing of the type.
Inheritance: TypeHandlers.BaseTypeHandler
示例#1
0
 public static void TestCustomHandler()
 {
     SampleCustomHandler customHandler = new SampleCustomHandler();
     SampleCustomWriter customWriter = new SampleCustomWriter();
     var r1 = EDNReader.EDNReaderFuncs.readString(TEST_STR_CustomTypeTimezone, customHandler).First();
     string printedObj = EDNWriter.EDNWriterFuncs.writeString(r1, customWriter);
 }
示例#2
0
 public static void TestCustomHandler()
 {
     SampleCustomHandler customHandler = new SampleCustomHandler();
     SampleCustomWriter  customWriter  = new SampleCustomWriter();
     var    r1         = EDNReader.EDNReaderFuncs.readString(TEST_STR_CustomTypeTimezone, customHandler).First();
     string printedObj = EDNWriter.EDNWriterFuncs.writeString(r1, customWriter);
 }