Open sandboxFocus

Class PortableSerializer

An implementation of ISerializer that uses the PortableFormatter (for classes annotated with PSerializableAttribute).

Inheritance
PortableSerializer
Implements
Namespace: PostSharp.Patterns.Caching.Serializers
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public sealed class PortableSerializer : ISerializer

Constructors

Name Description
PortableSerializer()

Initializes a new PortableSerializer with a new default PortableFormatter.

PortableSerializer(PortableFormatter)

Initializes a new PortableSerializer with a given PortableFormatter.

Methods

Name Description
Deserialize(byte[])

Deserializes a byte array into an object.

Serialize(object)

Serializes an object into a byte array.