C# Class MsgPack.Serialization.CodeGenerationSink

Represents code generation sink which is responsible to emitting target.
Mostrar archivo Open project: msgpack/msgpack-cli

Public Methods

Method Description
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.

Protected Methods

Method Description
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.

Method Details

AssignTextWriter() public method

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. ///
return void

AssignTextWriterCore() protected abstract method

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. ///
return void

CodeGenerationSink() protected method

Initializes a new instance of the CodeGenerationSink class.
protected CodeGenerationSink ( ) : System
return System

ForIndividualFile() public static method

Gets a pre-defined CodeGenerationSink object which assigns individual TextWriter for files toward each codes.
public static ForIndividualFile ( ) : CodeGenerationSink
return CodeGenerationSink

ForSpecifiedTextWriter() public static method

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.
return CodeGenerationSink