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 298 | Next

Scott Klein

"Professional LINQ"

It??™s used to represent an XML element.
The only difference here is the capability to use it to create XML literals in Visual Basic. For example,
the following code creates an XML fragment in Visual Basic .NET. Notice the exclusion of any quotes.
The XML is typed directly into the source code of the project.
181
Part II: LINQ to XML
Dim emp As XElement = _

1
Scott
Klein
Geek

The following example creates an XML document with a comment and version information. Again, this is
quite similar to the way the XDocument class was used in previous chapters, but it??™s used in this example
in an XML literal.
Dim empDoc As XDocument = _



1
Scott
Klein
Geek

Expressions
There is so much more that XML literals can do, such as using embedded expressions. Visual Basic
supports the concept of embedded expressions.


Pages:
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6