Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用 codedom 编译一个应该连接到我的 ftp 服务器的代码。但是由于“”,我无法输入凭据...
看这里 :
Temp.AppendLine(@"request.Credentials = new NetworkCredential("userid","userpassword");");
如果我在代码中输入“,它会自动结束括号的内容......帮助?
您可能需要使用双引号来转义内容,如下所示:
Temp.AppendLine(@"request.Credentials = new NetworkCredential(""userid"",""userpassword"");");
逃脱"与""
"
""