MsilAspectSerializer Class |
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.

System.Object
PostSharp.Aspects.Serialization.AspectSerializer
PostSharp.Aspects.Serialization.MsilAspectSerializer
PostSharp.Aspects.Serialization.AspectSerializer
PostSharp.Aspects.Serialization.MsilAspectSerializer
Namespace: PostSharp.Aspects.Serialization
Assembly: PostSharp (in PostSharp.dll) Version: 6.8.6.0 (6.8.6.0)

C#
public sealed class MsilAspectSerializer : AspectSerializer
The MsilAspectSerializer type exposes the following members.

Name | Description | |
---|---|---|
![]() | MsilAspectSerializer | Initializes a new instance of the MsilAspectSerializer class |

Name | Description | |
---|---|---|
![]() | Deserialize(Assembly, String, IMetadataDispenser) |
Deserializes aspects contained in a managed resource of an assembly.
(Inherited from AspectSerializer.) |
![]() | Serialize |
Serializes an array of aspects into a stream.
(Overrides AspectSerializer.Serialize(IAspect[], Stream, IMetadataEmitter).) |

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.
