PostSharpAPI ReferencePost­Sharp.​AspectsComposition­AspectCreate­Implementation­Object
Open sandboxFocus

CompositionAspect.CreateImplementationObject Method

CreateImplementationObject(AdviceArgs)

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

Declaration
public abstract object CreateImplementationObject(AdviceArgs args)
Parameters
Type Name Description
AdviceArgs args
Returns
Type Description
Object

The composed object. This interface should implement the interfaces specified by the GetPublicInterfaces(Type) method.

Implements
ICompositionAspect.CreateImplementationObject(AdviceArgs)
Remarks

This method is invoked during at runtime after the base constructor has executed, and before the constructor of the current type is executed.