Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / IComposition­Aspect Interface

ICompositionAspect Interface

Defines the semantics of an aspect that, when applied on a type, introduce one or many new interfaces into that type, and let these interfaces be implemented by an object created at runtime.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.39.0 (5.0.39.0)
Syntax
C#
public interface ICompositionAspect : ITypeLevelAspect, 
	IAspect

The ICompositionAspect type exposes the following members.

Methods
  NameDescription
Public methodCreateImplementationObject
Method invoked at runtime, during the initialization of instances of the target type, to create the composed object.
Public methodRuntimeInitialize
Initializes the current aspect.
(Inherited from ITypeLevelAspect.)
Remarks
See CompositionAspect for details.
See Also