PostSharp4.3/API Reference/Post­Sharp.​Aspects Namespace/Composition­Aspect Class/Composition­Aspect Methods/Composition­Aspect.​Create­Implementation­Object Method
CompositionAspect.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: 4.3.48.0 (4.3.48.0)
Syntax
C#
public abstract 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 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.
See Also