public void Close()
{
if (end_of_input)
return;
end_of_input = true;
end_of_json = true;
if (reader_is_owned)
reader.Close ();
reader = null;
}
public void BooleanTest() { string json = "[ true, false ]"; JsonReader reader = new JsonReader (json); reader.Read (); reader.Read (); Assert.IsTrue ((bool) reader.Value, "A1"); reader.Read (); Assert.IsTrue (! ((bool) reader.Value), "A2"); reader.Close (); }