Метод | Описание | |
---|---|---|
Close ( ) : void |
Closes this writer.
|
|
JsonWriter ( ) : System |
Initialises a new instance of then JsonWriter class using a System.IO.StringWriter as the underlying System.IO.TextWriter.
|
|
JsonWriter ( |
Initialises a new instance of the JsonWriter class and specifies the underlying System.IO.TextWriter and a value indicating if the instance owns the specified TextWriter.
|
|
ToString ( ) : string |
Returns a System.String representation of this instance.
|
|
WriteBeginArray ( ) : void |
Writes the start of an array to the underlying data stream.
|
|
WriteBeginObject ( ) : void |
Writes the start of an object to the underlying data stream.
|
|
WriteEndArray ( ) : void |
Writes the end of an array to the underlying data stream.
|
|
WriteEndObject ( ) : void |
Writes the end of an object to the underlying data stream.
|
|
WriteName ( string value ) : void |
Writes a object property name to the underlying data stream.
|
|
WriteValue ( string value ) : void |
Writes a raw string value to the underlying data stream.
|
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Disposed of this instance.
|
|
PostWrite ( JsonTokenType token ) : void |
Performs any post write operations needed after the specified token has been written to the underlying stream.
|
|
PreWrite ( JsonTokenType token ) : void |
Performs any assertions and / or write operations needed before the specified token is written to the underlying stream.
|
Метод | Описание | |
---|---|---|
Assert ( bool cond, JsonTokenType nextToken ) : void | ||
IsStructEnd ( JsonTokenType token ) : bool | ||
IsStructStart ( JsonTokenType token ) : bool |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | True if being called explicitly, otherwise; false /// to indicate being called implicitly by the GC. |
Результат | void |
public JsonWriter ( |
||
writer | The underlying text writer. | |
ownsWriter | bool | True if this instance owns the specified TextWriter, /// otherwise; false. |
Результат | System |
protected PostWrite ( JsonTokenType token ) : void | ||
token | JsonTokenType | The token written. |
Результат | void |
protected PreWrite ( JsonTokenType token ) : void | ||
token | JsonTokenType | The next token to be written. |
Результат | void |
public WriteName ( string value ) : void | ||
value | string | The property name. |
Результат | void |
public WriteValue ( string value ) : void | ||
value | string | The string to write. |
Результат | void |