3 ms·
VB's XML literals are just shortcuts for creating the corresponding classes though, right? That's quite a bit different.
by MichaelGG 10y ago
VB's XML literals are just shortcuts for creating the corresponding classes though, right? That's quite a bit different.
- oceanswave 10y agoWas being a bit sardonic in my comment due to where the discussion went, but yeah, XML Literals in VB.Net create XDocument instances and are just like string literals except: * Enclosing quotes aren't required * Assumed to be multi-line so line continuation characters aren't required * Are validated for being well-formed XML by the compiler (and at design-time, if VS) * Can have embedded expressions