Re: String.Concat vs String.Format
This kind of discussion is the result of too much pre-optimization and
also trying to steadfastly adhere to such overly generalized rules as
"concatenat ion is bad!".
For simple log statements, or when you're concatentation is limited,
it's fine.
It's when you are concatenating strings (especially long strings) in
loops, or doing lots of editing to the string, when you should look for
alternatives.
This kind of discussion is the result of too much pre-optimization and
also trying to steadfastly adhere to such overly generalized rules as
"concatenat ion is bad!".
For simple log statements, or when you're concatentation is limited,
it's fine.
It's when you are concatenating strings (especially long strings) in
loops, or doing lots of editing to the string, when you should look for
alternatives.
Comment