문자열 \
에서 사용
name.Append(Path.Combine("NETWORK", "MyComputer");
는 이스케이프 시퀀스입니다. 그래서 디버거에서 \
는 \\
Acc.to MSDN
Character combinations consisting of a backslash (\) followed by a letter or by a combination of digits are called "escape sequences." To represent a newline character, single quotation mark, or certain other characters in a character constant, you must use escape sequences. An escape sequence is regarded as a single character and is therefore valid as a character constant.
Escape sequences are typically used to specify actions such as carriage returns and tab movements on terminals and printers. They are also used to provide literal representations of nonprinting characters and characters that usually have special meanings, such as the double quotation mark ("). The following table lists the ANSI escape sequences and what they represent.
읽기 당신은 하나의 백 슬래시에 해당하는 경우 Escape Sequences
무엇을하려고하십니까? 이 "질문"에 물음표가 없습니다. –
연결 문자열을 만들려고 시도했지만 \\ 문제가 아니라 방금 해결 한 다른 문제로 보입니다. 도와 주셔서 감사합니다. – Craig
@Craig - "그게 다른 것"이라고 말하기보다는 대답이 무엇인지 (또는 답변을 게시해야 함) 언급해야합니다. 귀하의 질문/답변은 향후 누군가에게 유용 할 수 있습니다. – slugster