Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / IComposition­Aspect Interface / IComposition­Aspect Methods / IComposition­Aspect.​Create­Implementation­Object Method

ICompositionAspect.CreateImplementationObject Method

Method invoked at runtime, during the initialization of instances of the target type, to create the composed object.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.38.0 (5.0.38.0)
Syntax
C#
Object CreateImplementationObject(
	AdviceArgs args
)

Parameters

args
Type: PostSharp.Aspects.AdviceArgs

Return Value

Type: Object
The composed object. This interface should implement the interfaces specified by the PublicInterfaces and [!:CompositionAspectConfiguration.ProtectedInterfaces] collections.
Remarks
This method is invoked during at runtime after the base constructor has executed, and before the constructor of the current type is executed.
See Also