コード例 #1
0
 private static object Import(string input)
 {
     JsonTextReader reader = new JsonTextReader(new StringReader(input));
     BooleanImporter importer = new BooleanImporter();
     object o = importer.Import(new ImportContext(), reader);
     Assert.IsTrue(reader.EOF, "Reader must be at EOF.");
     return o;
 }
コード例 #2
0
 private static object Import(string input)
 {
     JsonTextReader reader = new JsonTextReader(new StringReader(input));
     BooleanImporter importer = new BooleanImporter();
     object o = importer.Import(new ImportContext(), reader);
     Assert.IsTrue(reader.EOF, "Reader must be at EOF.");
     return o;
 }