PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Serializers Namespace

PostSharp.Patterns.Caching.Serializers Namespace

This namespace contains several serializers, whose role are to serialize cached objects into an array of bytes.
Public classBinarySerializer
An implementation of BinaryFormatter that uses BinaryFormatter (for classes annotated with SerializableAttribute).
Public classDataContractSerializer
An implementation of ISerializer that uses NetDataContractSerializer. You can derive this class to use a different XmlObjectSerializer.
Public classPortableSerializer
An implementation of ISerializer that uses the PortableFormatter (for classes annotated with PSerializableAttribute).
Public interfaceISerializer
Serializes an object into a byte array and deserializes the byte array back.