重複の可能性:
Is String.Format as efficient as StringBuilder
C# String output: format or concat?String.Formatと "string" + "string"またはStringBuilder?
性能優先とどのような次のそれぞれを好むための条件であるべきです:
String.Format("{0}, {1}", city, state);
または
city + ", " + state;
または
StringBuilder sb = new StringBuilder();
sb.Append(city);
sb.Append(", ");
sb.Append(state);
sb.ToString();
@Shimmy:このhttp://stackoverflow.com/questions/6785/is-string-format-as-efficient-as-stringbuilder – shahkalpesh
http://blogs.msdnをご覧ください。com/b/ricom/archive/2004/03/12/performance-quiz-a-series.aspx – Freelancer
http://www.codinghorror.com/blog/archives/001218.html – Freelancer