一、@的用法:
1.忽略转义符
string strPath = "C:\\HelloWorld\\bin";
string strPath = @"C:\HelloWorld\bin";
2.跨行
string strSql = "SELECT * FROM Custom "
+ " where id=123";
string strSql = @"SELECT * FROM Custom where
id=123";
二、$的使用
string custid = 123;
string strSql = $"slect * from custom where id={custid}";
三、混合使用
string custid = 123;
string strSql =$ @"slect * from custom where
id={custid}";