PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / IModule­Element Interface / IModule­Element Methods / IModule­Element.​Translate Method

IModuleElement.Translate Method

Translates the current element so that it can be used in a given 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#
IModuleElement Translate(
	ModuleDeclaration targetModule
)

Parameters

targetModule
Type: PostSharp.Sdk.CodeModel.ModuleDeclaration
The ModuleDeclaration into which the current element should be translated.

Return Value

Type: IModuleElement
An element equivalent to the current element, but expressed for targetModule.
See Also