PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Serializers Namespace / Data­Contract­Serializer Class / Data­Contract­Serializer Methods

DataContractSerializer Methods

The DataContractSerializer type exposes the following members.

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