C# Класс Newtonsoft.Dson.DsonWriter

Represents a writer that provides a fast, non-cached, forward-only way of generating DSON data.
Наследование: Newtonsoft.Json.JsonWriter
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Close ( ) : void

Closes this stream and the underlying stream.

DsonWriter ( TextWriter textWriter ) : System

Initializes a new instance of the DsonWriter class.

Flush ( ) : void

Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.

WriteComment ( string text ) : void

Writes out a comment /*...*/ containing the specified text.

WriteNull ( ) : void

Writes a null value.

WritePropertyName ( string name ) : void

Writes the property name of a name/value pair on a Json object.

WriteRaw ( string json ) : void

Writes raw JSON.

WriteRawValue ( string json ) : void

Writes raw JSON where a value is expected and updates the writer's state.

WriteStartArray ( ) : void

Writes the beginning of a Json array.

WriteStartConstructor ( string name ) : void

Writes the start of a constructor with the given name.

WriteStartObject ( ) : void

Writes the beginning of a Json object.

WriteUndefined ( ) : void

Writes an undefined value.

WriteValue ( System.DateTime value ) : void

Writes a DateTime value.

WriteValue ( DateTimeOffset value ) : void

Writes a DateTimeOffset value.

WriteValue ( System.Guid value ) : void

Writes a Guid value.

WriteValue ( System.TimeSpan value ) : void

Writes a TimeSpan value.

WriteValue ( Uri value ) : void

Writes a Uri value.

WriteValue ( bool value ) : void

Writes a Boolean value.

WriteValue ( byte value ) : void

Writes a Byte value.

WriteValue ( char value ) : void

Writes a Char value.

WriteValue ( decimal value ) : void

Writes a Decimal value.

WriteValue ( double value ) : void

Writes a Double value.

WriteValue ( float value ) : void

Writes a Single value.

WriteValue ( int value ) : void

Writes a Int32 value.

WriteValue ( long value ) : void

Writes a Int64 value.

WriteValue ( short value ) : void

Writes a Int16 value.

WriteValue ( string value ) : void

Writes a String value.

Защищенные методы

Метод Описание
WriteEnd ( JsonToken token ) : void

Writes the specified end token.

WriteIndent ( ) : void

Writes indent characters.

WriteValueDelimiter ( ) : void

Writes the DSON value delimiter.

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

Метод Описание
EnsureSpace ( ) : void
WriteInternal ( string s ) : void
WriteValue ( sbyte value ) : void
WriteValue ( uint value ) : void
WriteValue ( ulong value ) : void
WriteValue ( ushort value ) : void

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

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

Closes this stream and the underlying stream.
public Close ( ) : void
Результат void

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

Initializes a new instance of the DsonWriter class.
public DsonWriter ( TextWriter textWriter ) : System
textWriter System.IO.TextWriter The textWriter.
Результат System

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

Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
public Flush ( ) : void
Результат void

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

Writes out a comment /*...*/ containing the specified text.
public WriteComment ( string text ) : void
text string Text to place inside the comment.
Результат void

WriteEnd() защищенный Метод

Writes the specified end token.
protected WriteEnd ( JsonToken token ) : void
token JsonToken The end token to write.
Результат void

WriteIndent() защищенный Метод

Writes indent characters.
protected WriteIndent ( ) : void
Результат void

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

Writes a null value.
public WriteNull ( ) : void
Результат void

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

Writes the property name of a name/value pair on a Json object.
public WritePropertyName ( string name ) : void
name string The name of the property.
Результат void

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

Writes raw JSON.
public WriteRaw ( string json ) : void
json string The raw JSON to write.
Результат void

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

Writes raw JSON where a value is expected and updates the writer's state.
public WriteRawValue ( string json ) : void
json string The raw JSON to write.
Результат void

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

Writes the beginning of a Json array.
public WriteStartArray ( ) : void
Результат void

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

Writes the start of a constructor with the given name.
public WriteStartConstructor ( string name ) : void
name string The name of the constructor.
Результат void

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

Writes the beginning of a Json object.
public WriteStartObject ( ) : void
Результат void

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

Writes an undefined value.
public WriteUndefined ( ) : void
Результат void

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

Writes a DateTime value.
public WriteValue ( System.DateTime value ) : void
value System.DateTime The value to write.
Результат void

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

Writes a DateTimeOffset value.
public WriteValue ( DateTimeOffset value ) : void
value DateTimeOffset The value to write.
Результат void

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

Writes a Guid value.
public WriteValue ( System.Guid value ) : void
value System.Guid The value to write.
Результат void

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

Writes a TimeSpan value.
public WriteValue ( System.TimeSpan value ) : void
value System.TimeSpan The value to write.
Результат void

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

Writes a Uri value.
public WriteValue ( Uri value ) : void
value System.Uri The value to write.
Результат void

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

Writes a Boolean value.
public WriteValue ( bool value ) : void
value bool The value to write.
Результат void

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

Writes a Byte value.
public WriteValue ( byte value ) : void
value byte The value to write.
Результат void

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

Writes a Char value.
public WriteValue ( char value ) : void
value char The value to write.
Результат void

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

Writes a Decimal value.
public WriteValue ( decimal value ) : void
value decimal The value to write.
Результат void

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

Writes a Double value.
public WriteValue ( double value ) : void
value double The value to write.
Результат void

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

Writes a Single value.
public WriteValue ( float value ) : void
value float The value to write.
Результат void

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

Writes a Int32 value.
public WriteValue ( int value ) : void
value int The value to write.
Результат void

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

Writes a Int64 value.
public WriteValue ( long value ) : void
value long The value to write.
Результат void

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

Writes a Int16 value.
public WriteValue ( short value ) : void
value short The value to write.
Результат void

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

Writes a String value.
public WriteValue ( string value ) : void
value string The value to write.
Результат void

WriteValueDelimiter() защищенный Метод

Writes the DSON value delimiter.
protected WriteValueDelimiter ( ) : void
Результат void