Επεξεργασία

Κοινή χρήση μέσω


CodeGenerator.CreateEscapedIdentifier(String) Method

Definition

Creates an escaped identifier for the specified value.

protected:
 abstract System::String ^ CreateEscapedIdentifier(System::String ^ value);
protected abstract string CreateEscapedIdentifier (string value);
abstract member CreateEscapedIdentifier : string -> string
Protected MustOverride Function CreateEscapedIdentifier (value As String) As String

Parameters

value
String

The string to create an escaped identifier for.

Returns

The escaped identifier for the value.

Remarks

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.

Note

The default implementation of this method does nothing.

Applies to

See also