C# Class ManagedFusion.Serialization.JsonSerializer

Inheritance: ISerializer
Exibir arquivo Open project: managedfusion/managedfusion

Private Properties

Property Type Description
BuildArray void
BuildDate void
BuildObject void
BuildPair void
BuildString void
BuildValue void
JsonSerializer System
OutputTabs void

Public Methods

Method Description
Serialize ( ICollection serialization ) : string

Serializes to JSON

Serialize ( object>.IDictionary serialization ) : string

Serializes to JSON

Serialize ( ICollection serialization, TextWriter writer ) : void

Serializes to JSON using stream.

Serialize ( object>.IDictionary serialization, TextWriter writer ) : void

Serializes to JSON using stream.

Private Methods

Method Description
BuildArray ( TextWriter builder, IEnumerable array ) : void

Builds the JSON array.

BuildDate ( TextWriter builder, System.DateTime datetime ) : void

Builds the JSON DateTime.

BuildObject ( TextWriter builder, object>.IDictionary serialization ) : void

Builds the JSON object.

BuildPair ( TextWriter builder, string name, object value ) : void

Builds the name/value pair.

BuildString ( TextWriter builder, string s ) : void

Escapes the string.

BuildValue ( TextWriter builder, object value ) : void

Builds the JSON value.

JsonSerializer ( ) : System
OutputTabs ( TextWriter builder ) : void

Method Details

Serialize() public method

Serializes to JSON
public Serialize ( ICollection serialization ) : string
serialization ICollection The object to serialize.
return string

Serialize() public method

Serializes to JSON
public Serialize ( object>.IDictionary serialization ) : string
serialization object>.IDictionary The object to serialize.
return string

Serialize() public method

Serializes to JSON using stream.
public Serialize ( ICollection serialization, TextWriter writer ) : void
serialization ICollection The object to serialize.
writer System.IO.TextWriter
return void

Serialize() public method

Serializes to JSON using stream.
public Serialize ( object>.IDictionary serialization, TextWriter writer ) : void
serialization object>.IDictionary The object to serialize.
writer System.IO.TextWriter
return void