VB multiline string as XML Literals

Posted by Mike Koerner on Geeks with Blogs See other posts from Geeks with Blogs or by Mike Koerner
Published on Wed, 22 Aug 2012 16:11:12 GMT Indexed on 2012/08/27 21:40 UTC
Read the original article Hit count: 233

Filed under:
Probably known by most programmers, but I want to document it so I can find it myself later.

An easy way to create a multiline VB string is to create a xml literal and use the value

Dim myTest = <string>Here is a multi
line string that I want to use in
some other code.  It
helps the readability and
cut and paste functionality.
Even if this is a poor example
</string>

Dim strInside as string = myTest.value

© Geeks with Blogs or respective owner