如何在C#中存储类似以下字符串的内容:
string mystring = @"CMD.AddParameters("@Pkey", SqlDbType.Int, Pkey.ToString());";
string mystring = "CMD.AddParameters(\"@Pkey\", SqlDbType.Int, Pkey.ToString());";
要么
string mystring = @"CMD.AddParameters(""@Pkey"", SqlDbType.Int, Pkey.ToString());";
"CMD.AddParameters(\\"@Pkey\\", SqlDbType.Int, Pkey.ToString());"
"CMD.AddParameters("@Pkey", SqlDbType.Int, Pkey.ToString());"
fwiw, here is a link to msdn on C# verbatim strings .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.