Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
You can use the class feature blocks in your text templates to add helper functions. Helper functions let you avoid repeating common code. The general syntax is as follows.
<#+ FeatureCode #>
The following code example shows how to use the class feature.
<#+
private string FixWhiteSpaces(string s)
{
return(Regex.Replace(s," ","").ToString());
}
#>
See Also
Tasks
How to: Add Helper Functions to Text Templates
Walkthrough: Creating and Running Text Templates
Other Resources
Using Built-in Directives in Text Templates
Generating Artifacts By Using Text Templates
Change History
Date |
History |
Reason |
---|---|---|
July 2008 |
Rewrote and refactored project. |
Content bug fix. |