I'm making a automatic download program. I used to use String.Format() when I have to combine two or three strings, and suddenly I'm curious about the efficiency of String.Format().
Let me explain. When I combine address and some parameters for targetting URL, I'll use the function like this:
string.Format("http://example.com/{0}?foo=bar", foo);
and display progress information to user, the implementation will be like this:
string.Format("{0}/{1}", foo_current, foo_all);
What I want to know is string.Format() is always more efficient than "+" operator when combining multiple strings.
I learned combining strings with + operator can make a lot of overheads. then, What should I do for combining strings efficiently?