This build process also enables the IntelliSense for the generated classes, and also
displays the information in the Object Browser window. To view the object browser,
select the menu option View | Object Browser from the Visual Studio IDE. This will
display the hierarchy of all the objects present in the current project.
Now we can code with objects using IntelliSense, as shown in the following screenshot:
Chapter 6
[ 163 ]
We can also get a list of objects with the use of IntelliSense, as shown in the
following screenshot:
Object Construction
LINQ to XML provides a powerful feature called functional construction, which is
the ability to create an XML tree in a single statement. All attributes and elements
are listed as arguments of XElement constructor. XElement constructor takes various
types of arguments for content. The argument can be an XElement, XAttribute,
or an array of objects, so that we can pass any number of objects to the XElement.
The functional construction feature is mainly used for navigating and modifying the
elements and attributes of an XML tree.
Pages:
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252