ধরুন স্ট্রিংটি হলো:
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