String Concatenation Speed?
Is there any hard research about which one of the following is faster, or more scalable?
- string name = “Scott“ + “ “ + “Cate“;
- StingBuilder sb = new StringBuilder();
sb.Append(“Scott“);
sb.Append(“ “);
sb.Append(“Cate“);
string name = sb.ToString();
- string name = string.Format(“{0} {1}“,“Scott“,“Cate“)
- string name = string.Concat("Scott"," ","Cate");
Maybe even another way that I'm not aware of yet?