PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Method­Def­Declaration Class / Method­Def­Declaration Methods / Method­Def­Declaration.​Get­Generic­Instance Method / Method­Def­Declaration.​Get­Generic­Instance Method (Generic­Map)

MethodDefDeclaration.GetGenericInstance Method (GenericMap)

Gets a generic instance of the current method.

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 IMethod GetGenericInstance(
	GenericMap genericMap
)

Parameters

genericMap
Type: PostSharp.Sdk.CodeModel.GenericMap
Generic arguments.

Return Value

Type: IMethod
A generic instance of the current method constructed using genericMap as generic arguments.

Implements

IGenericMethodDefinition.GetGenericInstance(GenericMap)
See Also