Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

tangible
#1 Posted : Sunday, May 10, 2009 12:47:37 AM(UTC)
Guest
Rank: Guest

Groups: Guest
Joined: 3/17/2009(UTC)
Posts: 1,084

=========================================
Update this issue was fixed in Version 1.5.02 / 24. May 2009
=========================================

Hi there,

if you are working with T4 toolbox a lot and create your own Generators or Testers you might be interested to know how
this intelli-sense trick. Currently it is better to write out the full name to get full intellisense like shown here:

<#@ template language="C#v3.5" hostspecific="True" debug="True" #>
<#@ output extension="cs" #>
<#@ include file="T4Toolbox.tt"#>

<#
var TR = new MyT4basedTemplateTester();
#>
<#+

// Note that you have to use full qualified type names within nested classes e.g. GeneratedTextTransformation.Template to get full intellisense
class MyT4basedTemplate : GeneratedTextTransformation.Template {
void Render_Core(){
this.Write("Hello");
}
}

class MyT4basedTemplateTester
{
// Note that you have to use full qualified type names within nested classes e.g. GeneratedTextTransformation.Template to get full intellisense
GeneratedTextTransformation.MyT4basedTemplate t = new GeneratedTextTransformation.MyT4basedTemplate();

public void test()
{
t.Render();
}
}
#>
Hope this helps

Tim

Edited by user Sunday, May 24, 2009 1:23:56 PM(UTC)  | Reason: Not specified

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF | YAF © 2003-2020, Yet Another Forum.NET
This page was generated in 0.098 seconds.

Authorization on the site

For an authorized user opens up new possibilities

Login

Password