C# Class 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
显示文件 Open project: pdebacker/UmbCodeGen Class Usage Examples

Public Methods

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

Private Methods

Method Description
DynamicTextTransformation ( object instance ) : System

Method Details

Create() public static method

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
return DynamicTextTransformation

Write() public method

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

WriteLine() public method

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