字符文字CSharp中的字符过多

时间:2019-06-16 12:19:17

标签: c# .net

我正在尝试设置用户信息 在文件中这样说

   'Tourist'=>{"1":{"Surname":"TestG","Name":"Tesre","Sex":"man","Birthday":"19701106",
"PassportS":"TT","PassportN":"34342342","Viza":"0","DateTake":"20031113",
"DateIssue":"20281116","WhoTake":"Testes"}}', 

然后我尝试将其设置为c#中的字符串链接

  string tourist= "Tourist'=>{"'1'":{"'Surname'":"'TestG'","'Name'":"'Tesre'","'Sex'":"'man'","'Birthday'":"'19701106'","'PassportS'":"'TT'","'PassportN'":"'34342342'","'Viza'":"'0'","'DateTake'":"'20031113'","'DateIssue'":"'20281116'","'WhoTake'":"'Testes'"}}";  

但它给出

CS1012 C#和ASP.NET MVC 3.0字符文字错误中的字符太多

0 个答案:

没有答案