C# Class Elmah.JsonTextWriter

Represents a writer that provides a fast, non-cached, forward-only way of generating streams or files containing JSON Text according to the grammar rules laid out in RFC 4627.
This class supports ELMAH and is not intended to be used directly from your code. It may be modified or removed in the future without notice. It has public accessibility for testing purposes. If you need a general-purpose JSON Text encoder, consult JSON.org for implementations or use classes available from the Microsoft .NET Framework.
显示文件 Open project: clearwavebuild/elmah Class Usage Examples

Private Properties

Property Type Description
EndStructured JsonTextWriter
Enquote void
StartStructured JsonTextWriter
Write JsonTextWriter
WriteEnquoted JsonTextWriter
WriteImpl JsonTextWriter

Public Methods

Method Description
Array ( ) : JsonTextWriter
Boolean ( bool value ) : JsonTextWriter
EndArray ( ) : JsonTextWriter
EndObject ( ) : JsonTextWriter
JsonTextWriter ( TextWriter writer ) : System
Member ( string name ) : JsonTextWriter
Null ( ) : JsonTextWriter
Number ( System.DateTime time ) : JsonTextWriter
Number ( int value ) : JsonTextWriter
Object ( ) : JsonTextWriter
Pop ( ) : JsonTextWriter
String ( System.DateTime time ) : JsonTextWriter
String ( string str ) : JsonTextWriter

Private Methods

Method Description
EndStructured ( ) : JsonTextWriter
Enquote ( string s, TextWriter writer ) : void
StartStructured ( string start, string end ) : JsonTextWriter
Write ( string text ) : JsonTextWriter
WriteEnquoted ( string text ) : JsonTextWriter
WriteImpl ( string text, bool raw ) : JsonTextWriter

Method Details

Array() public method

public Array ( ) : JsonTextWriter
return JsonTextWriter

Boolean() public method

public Boolean ( bool value ) : JsonTextWriter
value bool
return JsonTextWriter

EndArray() public method

public EndArray ( ) : JsonTextWriter
return JsonTextWriter

EndObject() public method

public EndObject ( ) : JsonTextWriter
return JsonTextWriter

JsonTextWriter() public method

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

Member() public method

public Member ( string name ) : JsonTextWriter
name string
return JsonTextWriter

Null() public method

public Null ( ) : JsonTextWriter
return JsonTextWriter

Number() public method

public Number ( System.DateTime time ) : JsonTextWriter
time System.DateTime
return JsonTextWriter

Number() public method

public Number ( int value ) : JsonTextWriter
value int
return JsonTextWriter

Object() public method

public Object ( ) : JsonTextWriter
return JsonTextWriter

Pop() public method

public Pop ( ) : JsonTextWriter
return JsonTextWriter

String() public method

public String ( System.DateTime time ) : JsonTextWriter
time System.DateTime
return JsonTextWriter

String() public method

public String ( string str ) : JsonTextWriter
str string
return JsonTextWriter