PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Generic­Helper Class / Generic­Helper Methods / Generic­Helper.​Get­Generic­Instance Method

GenericHelper.GetGenericInstance Method

[Missing <summary> documentation for "M:PostSharp.Sdk.CodeModel.GenericHelper.GetGenericInstance(PostSharp.Sdk.CodeModel.IGenericMethodDefinition,PostSharp.Sdk.CodeModel.GenericMap)"]

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 static IMethod GetGenericInstance(
	this IGenericMethodDefinition method,
	GenericMap genericArguments
)

Parameters

method
Type: PostSharp.Sdk.CodeModel.IGenericMethodDefinition

[Missing <param name="method"/> documentation for "M:PostSharp.Sdk.CodeModel.GenericHelper.GetGenericInstance(PostSharp.Sdk.CodeModel.IGenericMethodDefinition,PostSharp.Sdk.CodeModel.GenericMap)"]

genericArguments
Type: PostSharp.Sdk.CodeModel.GenericMap

[Missing <param name="genericArguments"/> documentation for "M:PostSharp.Sdk.CodeModel.GenericHelper.GetGenericInstance(PostSharp.Sdk.CodeModel.IGenericMethodDefinition,PostSharp.Sdk.CodeModel.GenericMap)"]

Return Value

Type: IMethod

[Missing <returns> documentation for "M:PostSharp.Sdk.CodeModel.GenericHelper.GetGenericInstance(PostSharp.Sdk.CodeModel.IGenericMethodDefinition,PostSharp.Sdk.CodeModel.GenericMap)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IGenericMethodDefinition. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also