However, they are the typed version of the methods.
The current release of LINQ to XSD is in its early stages, so these API methods could change.
354
Appendix C: LINQ to XSD
Load Method
You??™ve seen the Load method used a couple of times in the example in this appendix. The first was the
LINQ to XML??™s Load method on the XElement. The second time it was used was on the typed version of
a generated class.
Load creates an instance of the generated class, letting the newly created instance serve as a typed view on
an XElement instance. Take a look at the various overloads for the Load method. First, here??™s an example
that takes a URI string as the data source:
public static val Load(string uri);
The next example is the same as the first, but it includes a parameter to control the preservation
of whitespace.
static val Load(string uri, bool preserveWhitespace);
Here??™s how to use a TextReader as the data source:
static val Load(TextReader tr);
The following example is the same as the previous example except that it includes a parameter to control
the preservation of whitespace.
Pages:
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547