pontoNETpt
A comunidade PontoNetPT está direccionada a todos os programadores que trabalhem com a plataforma .NET.

Agosto 2008 - Pedro Rainho

  • T4 - Statement Blocks

    According to MSDN, the Statement Blocks You can use statement blocks in text templates to control the flow of processing in the text template. Statement blocks enable you either to structure templates to output things conditionally or to iterate over...
  • T4 - Text Blocks

    According to MSDN, the Text Blocks Any non-programmatic text in a text template is known as a text block. You can write a text block directly to the output file of the text transformation. You can add it just by typing the text in the text template. Text...
  • T4 - Expression Blocks

    According to MSDN, the Expression Blocks You can use expression blocks in text templates to add strings to the generated text output. Expression blocks contain code that is first added to the generated transformation class with calls to ToString() attached...
  • T4 - Class Feature Blocks

    According to MSDN, the Class Feature Blocks You can use the class feature blocks in your text templates to add helper functions. Helper functions let you avoid repeating common code. This means that I can write functions or declare fields and use then...
  • T4 - Include Directive

    According to MSDN, the Include Directive The include directive processes text from the specified file as if that text were included verbatim in the template currently being processed. The Include Directive it's very useful because it enables me to...
  • T4 - Output Directive

    According to MSDN, the Output Directive By using the output directive, you can specify characteristics of the generated text output, such as the file name extension. The Output Directive accepts two parameters ( ... )
  • T4 - Import Directive

    According to MSDN, the Import Directive By using the import directive, you can refer to types in a text template without providing a fully-qualified name. In simple words, this is similar as declaring the using namespace in a C# file. So, this directive...
  • T4 - Assembly Directive

    According to MSDN, the Assembly directive The assembly directive identifies an assembly to be referenced. This enables you to use types within that assembly from code in the text template. Using the assembly directive is equivalent to using the Add Reference...
  • T4 - Template Directive

    According to MSDN, the Template directive By using the template directive, you can specify characteristics of the generated transformation class. For example, you can specify code language, class inheritance, culture, and the ability to debug. This directive...
  • T4 - Errors

    While I was creating some T4 for my posts and I was testing the new things, I came across a few of errors and didn't found much information. ( ... )
Powered by Community Server (Commercial Edition), by Telligent Systems