Datacontract Attributes Serialization Rating: 8,9/10 6996 votes
  1. C# Serialization Datacontract
  2. Datacontract Attributes Serialization In Java

I'm review some data contract definitions and I find that the class is affixed with both the Serializable and DataContract attributes. Isn't this redundant? Or rather, Serializable is unnecessary. I wonder under what situations it might be? Guess it's time to dig deep into that A. Skonnard article on this topic.

Attributes-->Wcf datacontract attribute

C# Serialization Datacontract

The Windows Communication Foundation (WCF) infrastructure uses the DataContractSerializer class as the default serializer. Drake started from the bottom mp3. The topics in this section provide more details for using it as a stand-alone serializer.

In This Section

Datacontract Attributes Serialization

Serialization and Deserialization
Details how to use the DataContractSerializer class to serialize object graphs and deserialize XML documents into objects.

Schema Import and Export
Explains how to generate an XML Schema definition language (XSD) schema from a .NET Framework class, or how to generate code from an XSD schema document.

Reference

Datacontract Attributes Serialization In Java

Related Sections

See also