PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver Namespace / Aspect­Weaver­Transformation­Adder Class / Aspect­Weaver­Transformation­Adder Methods / Aspect­Weaver­Transformation­Adder.​Add Method / Aspect­Weaver­Transformation­Adder.​Add Method (IMetadata­Declaration, Aspect­Weaver­Transformation­Instance, Aspect­Dependency­Target)

AspectWeaverTransformationAdder.Add Method (IMetadataDeclaration, AspectWeaverTransformationInstance, AspectDependencyTarget)

Adds a transformation with the default AspectDependencyTarget and specifies whether the transformation should be associated with the set of dependencies in Dependencies or TypeLevelDependencies.

Namespace:  PostSharp.Sdk.AspectWeaver
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public void Add(
	IMetadataDeclaration targetElement,
	AspectWeaverTransformationInstance transformation,
	AspectDependencyTarget aspectDependencyTarget
)

Parameters

targetElement
Type: PostSharp.Sdk.CodeModel.IMetadataDeclaration
Declaration to which the transformation should be added.
transformation
Type: PostSharp.Sdk.AspectWeaver.AspectWeaverTransformationInstance
Transformation to be added.
aspectDependencyTarget
Type: AspectDependencyTarget
Default to use the set of dependencies in Dependencies, Type to use TypeLevelDependencies.
See Also