CodeGenerator::CreateEscapedIdentifier Method (String^)

 

Creates an escaped identifier for the specified value.

Namespace:   System.CodeDom.Compiler
Assembly:  System (in System.dll)

protected:
virtual String^ CreateEscapedIdentifier(
	String^ value
) abstract

Parameters

value
Type: System::String^

The string to create an escaped identifier for.

Return Value

Type: System::String^

The escaped identifier for the value.

CreateEscapedIdentifier tests whether the identifier conflicts with reserved or language keywords, and if so, returns an equivalent name with language-specific escape code formatting. The returned name is referred to an escaped identifier. The escaped identifier contains the same value but includes escape code formatting to differentiate it from conflicting keywords. For example, value could be preceded by an at sign ("@") or delimited by square brackets ("[" and "]") to create an escaped identifier.

System_CAPS_noteNote

The default implementation of this method does nothing.

.NET Framework
Available since 1.1
Return to top
Show: