![Serialization Serialization](/uploads/1/2/5/4/125448466/521255505.png)
Jump to Data Contract Serializer - NET type names as part of the serialized data. It is used when. [DataContract(Name = 'PersonContract', Namespace. The DataContractSerializer is used in combination with the DataContractAttribute and DataMemberAttribute classes. To set up a class for serialization, apply the DataContractAttribute to the class. For each member of the class that returns data that you want to serialize, you must apply the DataMemberAttribute.
![Datacontract Datacontract](/uploads/1/2/5/4/125448466/946735413.png)
Data Contract Serializer. 2 minutes to read. Contributors.
In this article The Windows Communication Foundation (WCF) infrastructure uses the class as the default serializer. The topics in this section provide more details for using it as a stand-alone serializer. In This Section Details how to use the class to serialize object graphs and deserialize XML documents into objects.
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 Related Sections See also. Feedback.