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)

AspectWeaverTransformationAdder.Add Method (IMetadataDeclaration, AspectWeaverTransformationInstance)

Adds a transformation and associates it with the set of dependencies in Dependencies.

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
)

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.
See Also