Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > How to create a local method in a T3 script.
 

How to create a local method in a T3 script.

Dear all,

I'd like to know if it's possible to create a local method in T3 script.
Like this maybe :
<# public string Test() { return "coucou"; } #/>

<#= Test(); #/>

Thanks in advance,
Philippe
philippe lombaers  Friday, July 08, 2005 11:14 AM
T3 does not support this at this time. Its successor, T4, which is currently being integrated into GAT, will.

As a sort of workaround, remember that you can make the template inherit from your custom class, where you can put all the utitlity methods you need, and author them will full intellisense... ;)
kzu  Friday, July 08, 2005 8:40 PM
T3 does not support this at this time. Its successor, T4, which is currently being integrated into GAT, will.

As a sort of workaround, remember that you can make the template inherit from your custom class, where you can put all the utitlity methods you need, and author them will full intellisense... ;)
kzu  Friday, July 08, 2005 8:40 PM

You can use google to search for other answers

Custom Search

More Threads

• Service Factory ( Data Access ) - Handling with transactions
• The function IsWebProject does not return true for web service project as it should
• Error in creating new solution through SFT
• Can't create my own action
• HOL006 problem - Exercise 2
• GAT/GAX and BizTalk Pipeline Component Wizard?
• Error using CreateProjectAction - Invalid URI: The URI is empty..
• Web Service Software Factory - Data Types from XSD
• SCSF Stopped Working correctly
• Argument in a Recipe, how to access them from a custom page