Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual Studio SDK
 Class Feature Syntax

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Domain-Specific Language Tools
Class Feature Syntax

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());
}
#>

Date

History

Reason

July 2008

Rewrote and refactored project.

Content bug fix.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker