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: 2023.0.3.0 (2023.0.3.0)
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: ICloneableModuleElementA clone of the current element, expressed for targetModule.