4 ms·
I also mentioned projects written in Ruby and Java, but that's ok. VB.Net also has XML Literals. Ha ha.
by oceanswave 10y ago
I also mentioned projects written in Ruby and Java, but that's ok. VB.Net also has XML Literals. Ha ha.
- MichaelGG 10y agoVB'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