Show / Hide Table of Contents

Method ExpectToken

| Improve this Doc View Source

ExpectToken(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.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest