This documentation is archived and is not being maintained.

CodeGenerator.CreateEscapedIdentifier Method

Creates an escaped identifier for the specified value.

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

protected abstract string CreateEscapedIdentifier (
	string value
)
protected abstract String CreateEscapedIdentifier (
	String value
)
protected abstract function CreateEscapedIdentifier (
	value : String
) : String
Not applicable.

Parameters

value

The string to create an escaped identifier for.

Return Value

The escaped identifier for the value.

CreateEscapedIdentifier tests whether the identifier conflicts with reserved or language keywords, and returns an equivalent name with language-specific escape code formatting. This is referred to an escaped identifier. The escaped identifier contains the same value but has escape code formatting added to differentiate the identifier from the keyword. Two implementation examples are preceding the value with "@" or bracketing the value with "[" and "]".

NoteNote:

The default implementation of this method does nothing.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Show: