摘要:
string[] strs = new string[10000];for (int i = 0; i < 10000; i++){strs[i] = i.ToString();}string temp1 = "";string temp2 = "";long fortime = 0;long foreachtime = 0;timer.Reset();timer.Start();for (int i = 0; i < 10000; i++){temp1 = strs[i];}fortime = timer.ElapsedTicks;time 阅读全文