YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

New Topic
Working with nested classes and intelli-sense Options · View
tangible
#1 Posted : Saturday, May 09, 2009 9:47:37 PM
Rank: Guest

Groups:

Joined: 3/16/2009
Posts: 1,002
=========================================
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
Users browsing this topic
Guest
New Topic
Forum Jump  
You can post new topics in this forum.
You can 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 can vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.087 seconds.