vb.net ampersand vs plus for concatenating string

Posted by dcp on Stack Overflow See other posts from Stack Overflow or by dcp
Published on 2010-06-09T13:21:29Z Indexed on 2010/06/09 13:32 UTC
Read the original article Hit count: 1211

In VB.Net, is there any advantage to using & to concatenate strings instead of +? e.g.

Dim x as String = "hello" + " there"

vs.

Dim x as String = "hello" & " there"

Yes, I know for a lot of string concatenations I'd want to use StringBuilder, but this is more of a general question.

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about string-concatenation