문자열이 −
라고 가정해 보겠습니다.Welcome User, Kindly wait for the image to load
여러 줄 문자열 리터럴의 경우 먼저 @ 접두사 −
를 사용하여 다음 문과 같이 설정합니다.string str = @"Welcome User, Kindly wait for the image to load";
이제 결과를 표시해 보겠습니다. 문자열은 이제 여러 줄로 된 문자열입니다 -
예
using System;
namespace Demo {
class Program {
static void Main(string[] args) {
string str = @"Welcome User,
Kindly wait for the image to
load";
Console.WriteLine(str);
}
}
} 출력
Welcome User, Kindly wait for the image to load