C# Class MsgPack.Serialization.CodeGenerationSink

Represents code generation sink which is responsible to emitting target.
Afficher le fichier Open project: msgpack/msgpack-cli

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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. ///
Résultat void

AssignTextWriterCore() protected abstract méthode

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. ///
Résultat void

CodeGenerationSink() protected méthode

Initializes a new instance of the CodeGenerationSink class.
protected CodeGenerationSink ( ) : System
Résultat System

ForIndividualFile() public static méthode

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

ForSpecifiedTextWriter() public static méthode

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.
Résultat CodeGenerationSink