C# Класс MsgPack.Serialization.CodeGenerationSink

Represents code generation sink which is responsible to emitting target.
Показать файл Открыть проект

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

Метод Описание
AssignTextWriter ( SerializerCodeInformation codeInformation ) : void

Assigns the appropriate TextWriter to the specified SerializerCodeInformation based on the argument and the method of this object.

ForIndividualFile ( ) : CodeGenerationSink

Gets a pre-defined CodeGenerationSink object which assigns individual TextWriter for files toward each codes.

ForSpecifiedTextWriter ( TextWriter writer ) : CodeGenerationSink

Gets a pre-defined CodeGenerationSink object which assigns specified TextWriter toward all codes.

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

Метод Описание
AssignTextWriterCore ( SerializerCodeInformation codeInformation ) : void

Assigns the appropriate TextWriter to the specified SerializerCodeInformation based on the argument and the method of this object.

CodeGenerationSink ( ) : System

Initializes a new instance of the CodeGenerationSink class.

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

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

Assigns the appropriate TextWriter to the specified SerializerCodeInformation based on the argument and the method of this object.
is null.
public AssignTextWriter ( SerializerCodeInformation codeInformation ) : void
codeInformation SerializerCodeInformation /// The object which holds informations to determine output and output themselves. ///
Результат void

AssignTextWriterCore() защищенный абстрактный Метод

Assigns the appropriate TextWriter to the specified SerializerCodeInformation based on the argument and the method of this object.
protected abstract AssignTextWriterCore ( SerializerCodeInformation codeInformation ) : void
codeInformation SerializerCodeInformation /// The object which holds informations to determine output and output themselves. /// The override implementation must set its property via Set* method. /// This value will not be null. ///
Результат void

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

Initializes a new instance of the CodeGenerationSink class.
protected CodeGenerationSink ( ) : System
Результат System

ForIndividualFile() публичный статический Метод

Gets a pre-defined CodeGenerationSink object which assigns individual TextWriter for files toward each codes.
public static ForIndividualFile ( ) : CodeGenerationSink
Результат CodeGenerationSink

ForSpecifiedTextWriter() публичный статический Метод

Gets a pre-defined CodeGenerationSink object which assigns specified TextWriter toward all codes.
The is null.
public static ForSpecifiedTextWriter ( TextWriter writer ) : CodeGenerationSink
writer System.IO.TextWriter The to be used for all codes.
Результат CodeGenerationSink