ICodeGenerator.CreateEscapedIdentifier(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an escaped identifier for the specified value.
public:
System::String ^ CreateEscapedIdentifier(System::String ^ value);
public string CreateEscapedIdentifier (string value);
abstract member CreateEscapedIdentifier : string -> string
Public 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. This is referred to an escaped identifier. The escaped identifier will contain the same value
but will have 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 "]".
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기