PortableSerializer Class |
An implementation of ISerializer that uses the PortableFormatter
(for classes annotated with PSerializableAttribute).
Namespace: PostSharp.Patterns.Caching.Serializers
Assembly: PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public sealed class PortableSerializer : ISerializer
The PortableSerializer type exposes the following members.
Name | Description | |
---|---|---|
PortableSerializer() |
Initializes a new PortableSerializer with a new default PortableFormatter.
| |
PortableSerializer(PortableFormatter) |
Initializes a new PortableSerializer with a given PortableFormatter.
|
Name | Description | |
---|---|---|
Deserialize |
Deserializes a byte array into an object.
| |
Serialize |
Serializes an object into a byte array.
|