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

BinarySerializer Class

An implementation of BinaryFormatter that uses BinaryFormatter (for classes annotated with SerializableAttribute).
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Caching.Serializers.BinarySerializer

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 BinarySerializer : ISerializer

The BinarySerializer type exposes the following members.

Constructors
  NameDescription
Public methodBinarySerializer
Initializes a new instance of the BinarySerializer class
Methods
  NameDescription
Public methodDeserialize
Deserializes a byte array into an object.
Public methodSerialize
Serializes an object into a byte array.
See Also