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

Scott Klein

"Professional LINQ"

0"?>

1
Scott
Klein
Geek

When you run this code, you will receive an error stating "Value of type ??™System.Xml.Linq.XDocument??™
cannot be converted to ??™System.Xml.Linq.XElement??™." That??™s because the compiler is smart enough
to know that this is an XML document literal, and you are trying to stuff an XML document into an XML
element, which won??™t work.
To fix this, simply change the XElement to an XDocument as highlighted here:
Dim empDoc As XDocument = _


1
Scott
Klein
Geek

How does the Visual Basic compiler create objects from these XML literals? When the compiler encounters
an XML literal, it translates the literal into calls for the equivalent LINQ to XML constructors. Those
LINQ to XML constructors are used to construct the LINQ to XML object.
Depending on the XML literal, the XML literal will be translated into calls to one or several
constructors.


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