C# 클래스 NetServ.Net.Json.JsonWriter

Provided support for writing JavaScript Object Notation data types to an underlying System.IO.TextWriter.
상속: Disposable, IJsonWriter
파일 보기 프로젝트 열기: appcelerator/entourage 1 사용 예제들

공개 메소드들

메소드 설명
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 ( TextWriter writer, bool ownsWriter ) : System

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

메소드 상세

Close() 공개 메소드

Closes this writer.
public Close ( ) : void
리턴 void

Dispose() 보호된 메소드

Disposed of this instance.
protected Dispose ( bool disposing ) : void
disposing bool True if being called explicitly, otherwise; false /// to indicate being called implicitly by the GC.
리턴 void

JsonWriter() 공개 메소드

Initialises a new instance of then JsonWriter class using a System.IO.StringWriter as the underlying System.IO.TextWriter.
public JsonWriter ( ) : System
리턴 System

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.
public JsonWriter ( TextWriter writer, bool ownsWriter ) : System
writer System.IO.TextWriter The underlying text writer.
ownsWriter bool True if this instance owns the specified TextWriter, /// otherwise; false.
리턴 System

PostWrite() 보호된 메소드

Performs any post write operations needed after the specified token has been written to the underlying stream.
protected PostWrite ( JsonTokenType token ) : void
token JsonTokenType The token written.
리턴 void

PreWrite() 보호된 메소드

Performs any assertions and / or write operations needed before the specified token is written to the underlying stream.
protected PreWrite ( JsonTokenType token ) : void
token JsonTokenType The next token to be written.
리턴 void

ToString() 공개 메소드

Returns a System.String representation of this instance.
public ToString ( ) : string
리턴 string

WriteBeginArray() 공개 메소드

Writes the start of an array to the underlying data stream.
public WriteBeginArray ( ) : void
리턴 void

WriteBeginObject() 공개 메소드

Writes the start of an object to the underlying data stream.
public WriteBeginObject ( ) : void
리턴 void

WriteEndArray() 공개 메소드

Writes the end of an array to the underlying data stream.
public WriteEndArray ( ) : void
리턴 void

WriteEndObject() 공개 메소드

Writes the end of an object to the underlying data stream.
public WriteEndObject ( ) : void
리턴 void

WriteName() 공개 메소드

Writes a object property name to the underlying data stream.
public WriteName ( string value ) : void
value string The property name.
리턴 void

WriteValue() 공개 메소드

Writes a raw string value to the underlying data stream.
public WriteValue ( string value ) : void
value string The string to write.
리턴 void