C# Class numl.Serialization.JsonWriter

JSON Writer object.
Inheritance: IDisposable
Afficher le fichier Open project: sethjuarez/numl Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes the current JSON writer object.

JsonWriter ( TextWriter writer ) : System

Creates a new JsonWriter from the underlying stream.

Write ( object value ) : void

Writes a raw simple object to the underlying stream.

WriteArray ( IEnumerable c ) : void

Writes an array to the underlying stream.

WriteArrayProperty ( string name, IEnumerable val ) : void

Writes an array property to the underlying stream.

WriteBeginArray ( ) : void

Writes the opening array tag to the underlying stream.

WriteBool ( bool value ) : void

Writes a boolean value to the underlying stream.

WriteEndArray ( ) : void

Writes the closing array tag to the underlying stream.

WriteEndObject ( ) : void

Writes an object closing to the underlying stream.

WriteFirstArrayProperty ( string name, IEnumerable val ) : void

Writes the first array property to the underlying stream.

WriteMatrix ( Matrix matrix ) : void

Writes a Matrix object to the underlying stream.

WriteNull ( ) : void

Writes a null value tag to the underlying stream.

WriteObject ( object o ) : void

Writes a raw complex object to the underlying stream.

WriteProperty ( string name, object val ) : void

Writes a non-first property to the underlying stream.

WriteStartObject ( ) : void

Writes an object opening tag to the underlying stream.

WriteString ( string value ) : void

Writes a string value to the underlying stream.

WriteVector ( Vector v ) : void

Writes a Vector object to the underlying stream.

Private Methods

Méthode Description
WriteFirstProperty ( string name, object val ) : void

Writes the first property to the underlying stream.

WriteSimpleType ( object value ) : void

Writes a simple type to the underlying stream (see TypeHelpers.IsSimpleType(Type, Type[]))

WriteToken ( int token ) : void
determineWriteAction ( object value, Type type ) : System.Action

Method Details

Dispose() public méthode

Disposes the current JSON writer object.
public Dispose ( ) : void
Résultat void

JsonWriter() public méthode

Creates a new JsonWriter from the underlying stream.
public JsonWriter ( TextWriter writer ) : System
writer System.IO.TextWriter
Résultat System

Write() public méthode

Writes a raw simple object to the underlying stream.
public Write ( object value ) : void
value object
Résultat void

WriteArray() public méthode

Writes an array to the underlying stream.
public WriteArray ( IEnumerable c ) : void
c IEnumerable
Résultat void

WriteArrayProperty() public méthode

Writes an array property to the underlying stream.
public WriteArrayProperty ( string name, IEnumerable val ) : void
name string Property name to use when writing.
val IEnumerable Value to write.
Résultat void

WriteBeginArray() public méthode

Writes the opening array tag to the underlying stream.
public WriteBeginArray ( ) : void
Résultat void

WriteBool() public méthode

Writes a boolean value to the underlying stream.
public WriteBool ( bool value ) : void
value bool
Résultat void

WriteEndArray() public méthode

Writes the closing array tag to the underlying stream.
public WriteEndArray ( ) : void
Résultat void

WriteEndObject() public méthode

Writes an object closing to the underlying stream.
public WriteEndObject ( ) : void
Résultat void

WriteFirstArrayProperty() public méthode

Writes the first array property to the underlying stream.
public WriteFirstArrayProperty ( string name, IEnumerable val ) : void
name string Property name to use when writing.
val IEnumerable Value to write.
Résultat void

WriteMatrix() public méthode

Writes a Matrix object to the underlying stream.
public WriteMatrix ( Matrix matrix ) : void
matrix Matrix
Résultat void

WriteNull() public méthode

Writes a null value tag to the underlying stream.
public WriteNull ( ) : void
Résultat void

WriteObject() public méthode

Writes a raw complex object to the underlying stream.
public WriteObject ( object o ) : void
o object
Résultat void

WriteProperty() public méthode

Writes a non-first property to the underlying stream.
public WriteProperty ( string name, object val ) : void
name string Property name to use when writing.
val object Value to write.
Résultat void

WriteStartObject() public méthode

Writes an object opening tag to the underlying stream.
public WriteStartObject ( ) : void
Résultat void

WriteString() public méthode

Writes a string value to the underlying stream.
public WriteString ( string value ) : void
value string
Résultat void

WriteVector() public méthode

Writes a Vector object to the underlying stream.
public WriteVector ( Vector v ) : void
v numl.Math.LinearAlgebra.Vector
Résultat void