Implementation of AspectSerializer based on the BinaryFormatter provided by the full version of the .NET Framework.
Namespace: PostSharp.Aspects.Serialization
Assembly: PostSharp.dll
Syntax
public class BinaryAspectSerializer : AspectSerializerRemarks
The weaver uses this serializer for aspect classes annotated with SerializableAttribute instead of
PSerializableAttribute. Because BinaryFormatter is insecure, the build
fails unless the PostSharpBinaryFormatterAllowed MSBuild property is set to True. Prefer PortableAspectSerializer.
Constructors
| Name | Description |
|---|---|
| BinaryAspectSerializer() |
Methods
| Name | Description |
|---|---|
| ChainSurrogateSelector(ISurrogateSelector) | Adds an item to the chain of surrogate selectors used during the process of serializing aspects. |
| Deserialize(Stream, IMetadataDispenser) | Deserializes a stream into an array of aspects. |
| Serialize(IAspect[], Stream, IMetadataEmitter) | Serializes an array of aspects into a stream. |