PostSharp6.5//API Reference/Post­Sharp.​Patterns.​Caching.​Serializers Namespace/Data­Contract­Serializer Class

DataContractSerializer Class

An implementation of ISerializer that uses NetDataContractSerializer. You can derive this class to use a different XmlObjectSerializer.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Caching.Serializers.DataContractSerializer

Namespace:  PostSharp.Patterns.Caching.Serializers
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.5.4.0 (6.5.4.0)
Syntax
C#
public class DataContractSerializer : ISerializer

The DataContractSerializer type exposes the following members.

Constructors
  NameDescription
Public methodDataContractSerializer
Initializes a new DataContractSerializer.
Methods
  NameDescription
Protected methodCreateSerializer
Creates a new XmlObjectSerializer. The default implementation creates a NetDataContractSerializer.
Public methodDeserialize
Deserializes a byte array into an object.
Public methodSerialize
Serializes an object into a byte array.
See Also