I am wondering what is the \"best practice\" to break long strings in C# source code. Is this string
\"string1\"+
\"string2\"+
\"string3\"
con
StringBuilder is a good way to go if you have many (more than about four) strings to concatenate. It's faster.
Using String.Concat in you example above is done at compile time. Since they are literal strings they are optimized by the compiler.
If you however use variables:
string a = "string1";
string b = "string2";
string c = a + b;
This is done at runtime.