번역/C# Notes for Professionals
12.10: String.Format() 표현식 내에서 중괄호 escape 처리하기
노초코
2021. 2. 22. 22:28
Section 12.10: String.Format() 표현식 내에서 중괄호 escape 처리하기
string outsidetext = "I am outside of bracket";
string.Format("{{I am in brackets!}} {0}", outsidetext);
// 출력 결과 : "{I am in brackets!} I am outside of bracket"
본 문서는 C# Notes for Professionals (라이센스:CC-BY-SA) 를 한글로 번역한 문서입니다. 번역상 오류가 있을 수 있으므로 정확한 내용은 원본 문서를 참고하세요.
[출처] https://books.goalkicker.com/CSharpBook/
반응형