When used as a value of AspectConfigurationAttribute.SerializerType property, specifies that the aspect should not be serialized but should instead be constructed at runtime using MSIL instructions.
Namespace: PostSharp.Aspects.Serialization
Assembly: PostSharp.dll
Syntax
public sealed class MsilAspectSerializer : AspectSerializerRemarks
This class is not a serializer. When you use MSIL aspect construction, the aspect is instantiated at runtime just as a normal custom attribute, and any initialization made at build time is lost.
Constructors
| Name | Description |
|---|---|
| MsilAspectSerializer() |
Methods
| Name | Description |
|---|---|
| Deserialize(Stream, IMetadataDispenser) | Deserializes a stream into an array if aspects. |
| Serialize(IAspect[], Stream, IMetadataEmitter) | Serializes an array of aspects into a stream. |