Method ExpectToken
| Improve this Doc View SourceExpectToken(JsonTokenKind)
Expects current token is specified kind.
Declaration
public JsonToken ExpectToken(JsonTokenKind expectedTokenKind)
Parameters
Type | Name | Description |
---|---|---|
JsonTokenKind | expectedTokenKind | The token kind. |
Returns
Type | Description |
---|---|
JsonToken | Current token, or exception thrown if current token is not satisfied. |