This documentation is archived and is not being maintained.

Serializing Object Graphs that Contain XElement Objects

This topic introduces the capability of serializing object graphs that contain references to objects of type XElement. To facility this type of serializing, XElement implements the IXmlSerializable interface.

Note that only the XElement class implements serialization.

Topic

Description

How to: Serialize Using XmlSerializer

Demonstrates how to serialize using XmlSerializer.

How to: Serialize Using DataContractSerializer

Demonstrates how to serialize using DataContractSerializer.

Show: