SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 220 | Next

Scott Klein

"Professional LINQ"

These expressions are evaluated
at run time. Embedded expressions are enclosed within <% %> brackets (if you do any ASP.NET
development, you??™re familiar with those).
The following creates a simple XML document using XML literals and an embedded expression:
Dim emp As XElement =
<%= New XElement("Name", "Scott") %>

128
Chapter 6: Programming with LINQ to XML
Here are the results when the code runs:

Scott

XML literals can span multiple lines without the need of line continuation characters as shown in the
example below. The only time this would differ is when you have a multi-line expression in the
embedded expression.
Dim employee As XElement =


Scott

555 Main St.
Wellington
FL

All Things Techy
02/05/2007
M


Steve

444 Main St.


Pages:
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6