C# 클래스 UmbCodeGen.CodeGen.DynamicTextTransformation

Responsible creating an instance that can be passed to helper classes that need to access the TextTransformation members. It accesses member by name and signature rather than by type. This is necessary when the template is being used in Preprocessed mode and there is no common known type that can be passed instead
파일 보기 프로젝트 열기: pdebacker/UmbCodeGen 1 사용 예제들

공개 메소드들

메소드 설명
Create ( object instance ) : DynamicTextTransformation

Creates an instance of the DynamicTextTransformation class around the passed in TextTransformation shapped instance passed in, or if the passed in instance already is a DynamicTextTransformation, it casts it and sends it back.

Write ( string text ) : void

Calls the wrapped TextTranformation instance's Write method.

WriteLine ( string text ) : void

Calls the wrapped TextTranformation instance's WriteLine method.

비공개 메소드들

메소드 설명
DynamicTextTransformation ( object instance ) : System

메소드 상세

Create() 공개 정적인 메소드

Creates an instance of the DynamicTextTransformation class around the passed in TextTransformation shapped instance passed in, or if the passed in instance already is a DynamicTextTransformation, it casts it and sends it back.
public static Create ( object instance ) : DynamicTextTransformation
instance object
리턴 DynamicTextTransformation

Write() 공개 메소드

Calls the wrapped TextTranformation instance's Write method.
public Write ( string text ) : void
text string
리턴 void

WriteLine() 공개 메소드

Calls the wrapped TextTranformation instance's WriteLine method.
public WriteLine ( string text ) : void
text string
리턴 void