View Code using System; using SystemCollectionsGeneric; using SystemLinq; using SystemText; using SystemThreading; using SystemDiagnostics; namespace CSharpStudy { class Program { static void Main(string[] args) { HelperWatch(() => { var str = new StringBuilder() for (var i = ; i < ; i++) { strAppend(i) } }) HelperWatch(() => { var str = ; for (var i = ; i < ; i++) { str += i; } }) HelperWatch(() => { var str = ; for (var i = ; i < ; i++) { str += iToString() } }) } } |