Compartilhar via


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.

In This Section

Topic

Description

How to: Serialize Using XmlSerializer

Demonstrates how to serialize using XmlSerializer.

How to: Serialize Using DataContractSerializer

Demonstrates how to serialize using DataContractSerializer.

See Also

Concepts

Advanced LINQ to XML Programming