Implementation of AspectSerializer based on the PortableFormatter, for use on any supported .NET platform.
Namespace: PostSharp.Aspects.Serialization
Assembly: PostSharp.dll
Syntax
public sealed class PortableAspectSerializer : AspectSerializerRemarks
This is the serializer that the weaver uses for aspect classes annotated with PSerializableAttribute. To exclude a field from serialization, annotate it with PNonSerializedAttribute.
Constructors
| Name | Description |
|---|---|
| PortableAspectSerializer() |
Methods
| Name | Description |
|---|---|
| Deserialize(Stream, IMetadataDispenser) | Deserializes a stream into an array of aspects. |
| Serialize(IAspect[], Stream, IMetadataEmitter) | Serializes an array of aspects into a stream. |