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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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