Duplicate from : String output: format or concat in C#?
Especially in C# world using String.Format for everything is really common, normally as VB.NET developer unless I have to* I don't String.Format,
I prefer normal string concatenation, such as:
V1 = V2 & "test-x" & V3 & "-;"
to me it's better than this:
V1 = String.Format("{0} test-x {1} -;", V2, V3)
Am I missing something? Or is this just a personal preference?
Reasons to Use String.Format (From The Answers) (I'll try to keep this up to date)
- Localization is so much easier if you use String Format
- Obviously it's easier to change the format of input
- It's more readable (however this is personal)
- Better Performance
**Sometimes I need to change the style or replacing stuff dynamically then I use String.Format*