C# Class UsonWriter, extensions

Inheritance: JsonWriter
Show file Open project: netfx/extensions Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Closes this stream and the underlying stream.

Flush ( ) : void

Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.

UsonWriter ( TextWriter writer ) : System
WriteComment ( string text ) : void
WriteNull ( ) : void

Writes a null value.

WritePropertyName ( string name ) : void

Writes the property name of a name/value pair on a Json object.

WriteRaw ( string json ) : void
WriteRawValue ( string json ) : void
WriteStartArray ( ) : void

Writes the beginning of a Json array.

WriteStartConstructor ( string name ) : void
WriteUndefined ( ) : void

Writes an undefined value.

WriteValue ( DateTime value ) : void
WriteValue ( DateTimeOffset value ) : void
WriteValue ( bool value ) : void

Writes a T:System.Boolean value.

WriteValue ( byte value ) : void

Writes a T:System.Byte value.

WriteValue ( char value ) : void

Writes a T:System.Char value.

WriteValue ( decimal value ) : void

Writes a T:System.Decimal value.

WriteValue ( double value ) : void

Writes a T:System.Double value.

WriteValue ( float value ) : void

Writes a T:System.Single value.

WriteValue ( int value ) : void

Writes a T:System.Int32 value.

WriteValue ( long value ) : void

Writes a T:System.Int64 value.

WriteValue ( sbyte value ) : void

Writes a T:System.SByte value.

WriteValue ( short value ) : void

Writes a T:System.Int16 value.

WriteValue ( string value ) : void

Writes a T:System.String value.

WriteValue ( uint value ) : void

Writes a T:System.UInt32 value.

WriteValue ( ulong value ) : void

Writes a T:System.UInt64 value.

WriteValue ( ushort value ) : void

Writes a T:System.UInt16 value.

WriteWhitespace ( string ws ) : void

Writes out the given white space.

Protected Methods

Method Description
WriteEnd ( JsonToken token ) : void

Writes the specified end token.

WriteValueDelimiter ( ) : void

Writes the JSON value delimiter.

Private Methods

Method Description
WriteValueInternal ( string value, JsonToken token ) : void

Method Details

Close() public method

Closes this stream and the underlying stream.
public Close ( ) : void
return void

Flush() public method

Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
public Flush ( ) : void
return void

UsonWriter() public method

public UsonWriter ( TextWriter writer ) : System
writer TextWriter
return System

WriteComment() public method

public WriteComment ( string text ) : void
text string
return void

WriteEnd() protected method

Writes the specified end token.
protected WriteEnd ( JsonToken token ) : void
token JsonToken
return void

WriteNull() public method

Writes a null value.
public WriteNull ( ) : void
return void

WritePropertyName() public method

Writes the property name of a name/value pair on a Json object.
public WritePropertyName ( string name ) : void
name string
return void

WriteRaw() public method

public WriteRaw ( string json ) : void
json string
return void

WriteRawValue() public method

public WriteRawValue ( string json ) : void
json string
return void

WriteStartArray() public method

Writes the beginning of a Json array.
public WriteStartArray ( ) : void
return void

WriteStartConstructor() public method

public WriteStartConstructor ( string name ) : void
name string
return void

WriteUndefined() public method

Writes an undefined value.
public WriteUndefined ( ) : void
return void

WriteValue() public method

public WriteValue ( DateTime value ) : void
value DateTime
return void

WriteValue() public method

public WriteValue ( DateTimeOffset value ) : void
value DateTimeOffset
return void

WriteValue() public method

Writes a T:System.Boolean value.
public WriteValue ( bool value ) : void
value bool
return void

WriteValue() public method

Writes a T:System.Byte value.
public WriteValue ( byte value ) : void
value byte
return void

WriteValue() public method

Writes a T:System.Char value.
public WriteValue ( char value ) : void
value char
return void

WriteValue() public method

Writes a T:System.Decimal value.
public WriteValue ( decimal value ) : void
value decimal
return void

WriteValue() public method

Writes a T:System.Double value.
public WriteValue ( double value ) : void
value double
return void

WriteValue() public method

Writes a T:System.Single value.
public WriteValue ( float value ) : void
value float
return void

WriteValue() public method

Writes a T:System.Int32 value.
public WriteValue ( int value ) : void
value int
return void

WriteValue() public method

Writes a T:System.Int64 value.
public WriteValue ( long value ) : void
value long
return void

WriteValue() public method

Writes a T:System.SByte value.
public WriteValue ( sbyte value ) : void
value sbyte
return void

WriteValue() public method

Writes a T:System.Int16 value.
public WriteValue ( short value ) : void
value short
return void

WriteValue() public method

Writes a T:System.String value.
public WriteValue ( string value ) : void
value string
return void

WriteValue() public method

Writes a T:System.UInt32 value.
public WriteValue ( uint value ) : void
value uint The value to write.
return void

WriteValue() public method

Writes a T:System.UInt64 value.
public WriteValue ( ulong value ) : void
value ulong
return void

WriteValue() public method

Writes a T:System.UInt16 value.
public WriteValue ( ushort value ) : void
value ushort
return void

WriteValueDelimiter() protected method

Writes the JSON value delimiter.
protected WriteValueDelimiter ( ) : void
return void

WriteWhitespace() public method

Writes out the given white space.
public WriteWhitespace ( string ws ) : void
ws string
return void