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

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. ( ... )
  • T4 - Debugging

    First this is new to me. I create T4 using the Guidance Automation Toolkit (GAT) but I didn't know that if I add this: <#@ import namespace="System.Diagnostics" #> <# Debugger.Break(); #> ( ... )
  • T4 - Syntax

    Like I had wrote in previous post the syntax of a T4 is similar to ASP. I think big difference is the using of blocks like this <# ... #> instead of using ASP blocks like this <% ... %> the rest is very similar. :) ( ... )
  • Text Template Transformation Toolkit - T4

    Recently I found out that Visual Studio 2008 includes a " T ext T emplate T ransformation T oolkit", also known as T4 for those that develop using Guidance Automation Toolkit (GAT) . GAT is the toolkit that is normally used to develop Software...
  • WCF Load Test and SQL Load Test

    These are the two new tools I had just found in CodePlex . The first one ( WCF Load Test ) is used to generate unit tests based on WCF trace file and a WCF client proxy, or a WCF interface contract. The second one ( SQL Load Test ) is used to generated...
  • xmlns:xsi with Linq to XML

    If someone needs to add a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" to a xml element using Linq to XML all you have to do is something like this XNamespace xsi = "http://www.w3.org/2001/XMLSchema-instance" ; XDocument doc...
1 2 3 4 5 Next > ... Last »
Powered by Community Server (Commercial Edition), by Telligent Systems