首页 > 代码库 > C#中Strings VS. StringBuilder
C#中Strings VS. StringBuilder
1 string mappingHandler = String.Format(@"""[name=‘BTSHTTPReceiveModule‘,path=‘BTSHTTPReceive.dll‘,verb=‘*‘,scriptProcessor=‘%programfiles(x86)%\Microsoft BizTalk Server 2009\HttpReceive64\BTSHTTPReceive.dll‘,resourceType=‘Unspecified‘,modules=‘IsapiModule‘,requireAccess=‘Execute‘]""");2 StringBuilder sb = new StringBuilder();3 sb.AppendFormat(@"%SystemRoot%\system32\inetsrv\appcmd.exe set config {0} /section:handlers /+", "\"AppWeekSite/AppWeek\"");4 sb.Append(mappingHandler);5 sb.AppendFormat(@" > {0}\AppCmdOutE2EDeploy.txt", ContextBag.TestDir);6 Trace.WriteLine(sb.ToString(), TestCaseLogCategory.Info);7 Exec.ExecuteCommand(sb.ToString());
Strings @MSDN
http://msdn.microsoft.com/en-us/library/ms228362.aspx
StringBuilder Class @MSDN
http://msdn.microsoft.com/en-us/library/system.text.stringbuilder.aspx
Using the StringBuilder Class @MSDN
http://msdn.microsoft.com/en-us/library/2839d5h5(v=vs.71).aspx
String Vs StringBuilder (C#) @CodeProject
http://www.codeproject.com/KB/string/string.aspx
C#中Strings VS. StringBuilder
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。