Defines the semantics of an aspect that, when applied on a type, adds
an interface to this type and delegates the implementation of this interface
to a third object.
Namespace:
PostSharp.LaosAssembly: PostSharp.Laos (in PostSharp.Laos.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Interface ICompositionAspect _ Implements ILaosTypeLevelAspect, ILaosWeavableAspect, IInstanceBoundLaosAspect, ILaosAspect |
| C# |
|---|
public interface ICompositionAspect : ILaosTypeLevelAspect, ILaosWeavableAspect, IInstanceBoundLaosAspect, ILaosAspect |
| Visual C++ |
|---|
public interface class ICompositionAspect : ILaosTypeLevelAspect, ILaosWeavableAspect, IInstanceBoundLaosAspect, ILaosAspect |
Remarks
Use the Post.Cast<(Of <(SourceType, TargetType>)>)(SourceType)
method to cast the enhanced type to the newly implemented interface. This
cast is verified during post-compilation.