Prev | Current Page 122 | Next

Satheesh, N Kumar

"LINQ Quickly"

In this example, we have not
used any line continuation character in the XML literal.
Dim raisinIcecream As XElement = _

Rum Raisin Ice Cream
Rum, guar gum, milk, alomnds, sugar,
raisins, honey, chocolate, annatto color...

49mg
28g
6g
8g

Visual Basic also provides an additional feature of adding expressions to XML
literals. This helps us to add dynamic content to the XML literal. For example, the
following XML literal uses embedded expressions to crate the XML element from the
parameter values passed to the method. When we add expression to the literal, we
also get the IntelliSense help from Visual Studio to easily select the elements.
Chapter 3
[ 75 ]
Following is the sample of an XML, created by passing the values to
CallIcecreamsEmbedded, which returns the XElement.


Pages:
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
Holandia katalog stron śmieszne dowcipy dieta light typy bukmacherskie