Class Feature Syntax
Visual Studio 2008
Updated: July 2008
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());
}
#>