Similar to this question, but for VB.NET since I learned this is a language thing.
For instance, would the compiler know to translate
Dim s As String = ‘test ‘ + ‘this ‘ + ‘function’
to
Dim s As String = 'test this function'
and thus avoid the performance hit with the string concatenation?
Yes. It Does. I only tested VS 2008 but I strongly suspect previous versions did as well.
VB.NET
I.L. – Notice the string ‘test this function’