PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Custom­Attribute­Declaration Class / Custom­Attribute­Declaration Methods / Custom­Attribute­Declaration.​Translate Method

CustomAttributeDeclaration.Translate Method

Translates the custom attribute so that it can be used in another module.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public CustomAttributeDeclaration Translate(
	ModuleDeclaration module
)

Parameters

module
Type: PostSharp.Sdk.CodeModel.ModuleDeclaration
A module.

Return Value

Type: CustomAttributeDeclaration
A CustomAttributeDeclaration equivalent to the current instance, but valid inside the other module.
See Also