C# Class DynamicRest.JsonWriter

Exibir arquivo Open project: nikhilk/dynamicrest Class Usage Examples

Public Methods

Method Description
EndScope ( ) : void
JsonWriter ( ) : System
JsonWriter ( TextWriter writer ) : System
JsonWriter ( TextWriter writer, bool minimizeWhitespace ) : System
JsonWriter ( bool minimizeWhitespace ) : System
StartArrayScope ( ) : void
StartObjectScope ( ) : void
WriteName ( string name ) : void
WriteValue ( System.DateTime dateTime ) : void
WriteValue ( ICollection items ) : void
WriteValue ( IDictionary record ) : void
WriteValue ( bool value ) : void
WriteValue ( double value ) : void
WriteValue ( float value ) : void
WriteValue ( int value ) : void
WriteValue ( object o ) : void
WriteValue ( string s ) : void

Private Methods

Method Description
EscapeString ( string s ) : string
StartScope ( ScopeType type ) : void
WriteCore ( string text, bool quotes ) : void

Method Details

EndScope() public method

public EndScope ( ) : void
return void

JsonWriter() public method

public JsonWriter ( ) : System
return System

JsonWriter() public method

public JsonWriter ( TextWriter writer ) : System
writer System.IO.TextWriter
return System

JsonWriter() public method

public JsonWriter ( TextWriter writer, bool minimizeWhitespace ) : System
writer System.IO.TextWriter
minimizeWhitespace bool
return System

JsonWriter() public method

public JsonWriter ( bool minimizeWhitespace ) : System
minimizeWhitespace bool
return System

StartArrayScope() public method

public StartArrayScope ( ) : void
return void

StartObjectScope() public method

public StartObjectScope ( ) : void
return void

WriteName() public method

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

WriteValue() public method

public WriteValue ( System.DateTime dateTime ) : void
dateTime System.DateTime
return void

WriteValue() public method

public WriteValue ( ICollection items ) : void
items ICollection
return void

WriteValue() public method

public WriteValue ( IDictionary record ) : void
record IDictionary
return void

WriteValue() public method

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

WriteValue() public method

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

WriteValue() public method

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

WriteValue() public method

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

WriteValue() public method

public WriteValue ( object o ) : void
o object
return void

WriteValue() public method

public WriteValue ( string s ) : void
s string
return void