PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Caching.​Serializers Namespace/Portable­Serializer Class

PortableSerializer Class

An implementation of ISerializer that uses the PortableFormatter (for classes annotated with PSerializableAttribute).
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Caching.Serializers.PortableSerializer

Namespace:  PostSharp.Patterns.Caching.Serializers
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.2.13.0 (6.2.13.0)
Syntax
C#
public sealed class PortableSerializer : ISerializer

The PortableSerializer type exposes the following members.

Constructors
  NameDescription
Public methodPortableSerializer()
Initializes a new PortableSerializer with a new default PortableFormatter.
Public methodPortableSerializer(PortableFormatter)
Initializes a new PortableSerializer with a given PortableFormatter.
Methods
  NameDescription
Public methodDeserialize
Deserializes a byte array into an object.
Public methodSerialize
Serializes an object into a byte array.
See Also