MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​AspectsAspect­InstanceAspect­Instance
Open sandboxFocus

AspectInstance Constructor

AspectInstance(Object, IAspect)

Declaration
public AspectInstance(object targetElement, IAspect aspect)
Parameters
Type Name Description
Object targetElement
IAspect aspect

AspectInstance(Object, IAspect, AspectConfiguration)

Declaration
public AspectInstance(object targetElement, IAspect aspect, AspectConfiguration aspectConfiguration)
Parameters
Type Name Description
Object targetElement
IAspect aspect
AspectConfiguration aspectConfiguration

AspectInstance(Object, ObjectConstruction)

Declaration
public AspectInstance(object targetElement, ObjectConstruction aspectConstruction)
Parameters
Type Name Description
Object targetElement
ObjectConstruction aspectConstruction

AspectInstance(Object, ObjectConstruction, AspectConfiguration)

Declaration
public AspectInstance(object targetElement, ObjectConstruction aspectConstruction, AspectConfiguration aspectConfiguration)
Parameters
Type Name Description
Object targetElement
ObjectConstruction aspectConstruction
AspectConfiguration aspectConfiguration