Method | Description | |
---|---|---|
IndentedJsonWriter ( ) : System |
Initialises a new instance of then IndentedJsonWriter class using a System.IO.StringWriter as the underlying System.IO.TextWriter.
|
|
IndentedJsonWriter ( |
Initialises a new instance of the IndentedJsonWriter class and specifies the underlying System.IO.TextWriter and a value indicating if the instance owns the specified TextWriter.
|
Method | Description | |
---|---|---|
PreWrite ( JsonTokenType token ) : void |
Performs any assertions and / or write operations needed before the specified token is written to the underlying stream.
|
|
WriteIndent ( ) : void |
Writes the indent to the underlying stream.
|
public IndentedJsonWriter ( |
||
writer | The underlying text writer. | |
ownsWriter | bool | True if this instance owns the specified TextWriter, /// otherwise; false. |
return | System |
protected PreWrite ( JsonTokenType token ) : void | ||
token | JsonTokenType | The next token to be written. |
return | void |