O'Reilly logo

Essential ADO.NET by Bob Beauchemin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7.3. Serialization, Marshaling, and DataSet

Rather than use a binary format by default, as in ADO classic, the DataSet default is XML serialization and marshaling. This means that you can populate DataSet from non-Microsoft data sources, and the data is consumable from non-Microsoft platforms. Because DataSet marshals as an XML document, it is natively supported without transformation by Web Services.

The .NET platform includes two libraries that serialize and deserialize classes in XML format:

  • System.Runtime.Serialization is used for marshaling in .NET implementations.

  • System.Xml.Serialization is used in Web Services to support unlike implementations.

DataSet is compatible with both of them.

System.Runtime.Serialization serializes .NET classes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required