Ejemplo n.º 1
0
 /// <summary>
 /// Attempts to read a boolean value.
 /// </summary>
 /// <returns>the boolean value</returns>
 /// <exception cref="TypeException">if the next token is not a boolean</exception>
 /// <exception cref="SyntaxException">if there is a JSON parsing error</exception>
 public bool Bool()
 {
     _awaitingReadValue = false;
     return(_delegate == null?_tr.Bool() : _delegate.NextValue(ValueType.Bool, false).BoolValue);
 }