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 (IList(IType­Signature), Binding­Options)

MethodDefDeclaration.GetGenericInstance Method (IList<ITypeSignature>, BindingOptions)

Finds or construct a specific generic instance of the current generic method definition.

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(
	IList<ITypeSignature> genericArguments,
	BindingOptions bindingOptions
)

Parameters

genericArguments
Type: System.Collections.Generic.IList<ITypeSignature>
Generic arguments.
bindingOptions
Type: PostSharp.Sdk.CodeModel.BindingOptions
Binding options.

Return Value

Type: IMethod
The generic instance, or null if it was not found and was not requested to be created.

Implements

IGenericMethodDefinition.GetGenericInstance(IList<ITypeSignature>, BindingOptions)
See Also