开发者

StringBuilder string format

开发者 https://www.devze.com 2022-12-12 12:31 出处:网络
scriptValues.AppendFormat(\"something = {1};\", SessionID.ToString()); in the above, I get a R# warning or something that says I need to add a 3rd param.When I look with intellisense it开发者_Python
scriptValues.AppendFormat("something = {1};", SessionID.ToString());

in the above, I get a R# warning or something that says I need to add a 3rd param. When I look with intellisense it开发者_Python百科 shows string formatter. Do I need one here?


It should be scriptValues.AppendFormat(@"something = {0}";", SessionID.ToString());

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号