C# Класс numl.Serialization.JsonWriter

JSON Writer object.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Dispose() публичный Метод

Disposes the current JSON writer object.
public Dispose ( ) : void
Результат void

JsonWriter() публичный Метод

Creates a new JsonWriter from the underlying stream.
public JsonWriter ( TextWriter writer ) : System
writer System.IO.TextWriter
Результат System

Write() публичный Метод

Writes a raw simple object to the underlying stream.
public Write ( object value ) : void
value object
Результат void

WriteArray() публичный Метод

Writes an array to the underlying stream.
public WriteArray ( IEnumerable c ) : void
c IEnumerable
Результат void

WriteArrayProperty() публичный Метод

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.
Результат void

WriteBeginArray() публичный Метод

Writes the opening array tag to the underlying stream.
public WriteBeginArray ( ) : void
Результат void

WriteBool() публичный Метод

Writes a boolean value to the underlying stream.
public WriteBool ( bool value ) : void
value bool
Результат void

WriteEndArray() публичный Метод

Writes the closing array tag to the underlying stream.
public WriteEndArray ( ) : void
Результат void

WriteEndObject() публичный Метод

Writes an object closing to the underlying stream.
public WriteEndObject ( ) : void
Результат void

WriteFirstArrayProperty() публичный Метод

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.
Результат void

WriteMatrix() публичный Метод

Writes a Matrix object to the underlying stream.
public WriteMatrix ( Matrix matrix ) : void
matrix Matrix
Результат void

WriteNull() публичный Метод

Writes a null value tag to the underlying stream.
public WriteNull ( ) : void
Результат void

WriteObject() публичный Метод

Writes a raw complex object to the underlying stream.
public WriteObject ( object o ) : void
o object
Результат void

WriteProperty() публичный Метод

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.
Результат void

WriteStartObject() публичный Метод

Writes an object opening tag to the underlying stream.
public WriteStartObject ( ) : void
Результат void

WriteString() публичный Метод

Writes a string value to the underlying stream.
public WriteString ( string value ) : void
value string
Результат void

WriteVector() публичный Метод

Writes a Vector object to the underlying stream.
public WriteVector ( Vector v ) : void
v numl.Math.LinearAlgebra.Vector
Результат void