PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Generic­Parameter­Constraint­Declaration Class / Generic­Parameter­Constraint­Declaration Methods / Generic­Parameter­Constraint­Declaration.​Clone Method

GenericParameterConstraintDeclaration.Clone Method

Creates a clone of the current module element and express this clone for use in a different 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 ICloneableModuleElement Clone(
	ModuleDeclaration targetModule
)

Parameters

targetModule
Type: PostSharp.Sdk.CodeModel.ModuleDeclaration
The ModuleDeclaration for which the clone should be expressed.

Return Value

Type: ICloneableModuleElement
A clone of the current element, expressed for targetModule.

Implements

ICloneableModuleElement.Clone(ModuleDeclaration)
See Also