An implementation of BinaryFormatter that uses BinaryFormatter (for classes annotated with SerializableAttribute).
Implements
Namespace: PostSharp.Patterns.Caching.Serializers
Assembly: PostSharp.Patterns.Caching.dll
Syntax
[Obsolete("BinaryFormatter used by this class is considered dangerous. Use JsonCachingSerializer instead.", false)]
public sealed class BinarySerializer : ISerializer
Remarks
This class uses BinaryFormatter, which is dangerous. Consider using JsonCachingSerializer instead.
Constructors
Name | Description |
---|---|
BinarySerializer() |
Methods
Name | Description |
---|---|
Deserialize(byte[]) | Deserializes a byte array into an object. |
Serialize(object) | Serializes an object into a byte array. |