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

IMethod.TranslateMethod Method

Translates the current method so that it is meaningful in another module than the one to which it primarily belong.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
IMethod TranslateMethod(
	ModuleDeclaration targetModule
)

Parameters

targetModule
Type: PostSharp.Sdk.CodeModel.ModuleDeclaration
Module into which the method signature should be translated.

Return Value

Type: IMethod
A method signature meaningful in the targetModule module.
See Also