Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Serialization Namespace / Msil­Aspect­Serializer Class

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.
Inheritance Hierarchy
System.Object
  PostSharp.Aspects.Serialization.AspectSerializer
    PostSharp.Aspects.Serialization.MsilAspectSerializer

Namespace:  PostSharp.Aspects.Serialization
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.38.0 (5.0.38.0)
Syntax
C#
public sealed class MsilAspectSerializer : AspectSerializer

The MsilAspectSerializer type exposes the following members.

Constructors
  NameDescription
Public methodMsilAspectSerializer
Initializes a new instance of the MsilAspectSerializer class
Methods
  NameDescription
Public methodDeserialize(Assembly, String, IMetadataDispenser)
Deserializes aspects contained in a managed resource of an assembly.
(Inherited from AspectSerializer.)
Public methodSerialize
Serializes an array of aspects into a stream.
(Overrides AspectSerializer.Serialize(IAspect[], Stream, IMetadataEmitter).)
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Remarks
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.
See Also