string a = "abc";
string a = @"abc";
string a = $"abc";
這麼寫就有區別了:
string name = "jack";
int age = 20;
string s1 = string.Format("your name is \"{0}\"\r\nyour age is {1}.", name, age);
string s2 = string.Format(@"your name is ""{0}""
your age is {1}.", name, age);
string s3 = $"your name is \"{name}\"\r\nyour age is {age}.";