C# 클래스 MsgPack.Serialization.CodeGenerationSink

Represents code generation sink which is responsible to emitting target.
파일 보기 프로젝트 열기: msgpack/msgpack-cli

공개 메소드들

메소드 설명
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