JsonStringReader

Namespace: SnowBank.Data.Json · struct

Implements: IJsonReader

JSON Text reader that wraps a string

Constructors

JsonStringReader

JsonStringReader(string text)

Constructs an instance that will read from the specified string

Properties

HasMore

bool? HasMore { get; }

Returns true if there are more characters to read

Remaining

int? Remaining { get; }

Returns the number of remaining characters that are still available

Methods

Read

int Read()

Returns the next character in the source, or -1 if no more characters are available

Fields

Pos

int Pos

Position in the source

Text

readonly string Text

Source literal