PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Declaration­Cache Class / Declaration­Cache Methods / Declaration­Cache.​Get­Generic­Parameter Method

DeclarationCache.GetGenericParameter Method

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public GenericParameterTypeSignature GetGenericParameter(
	int ordinal,
	GenericParameterKind kind
)

Parameters

ordinal
Type: System.Int32
Ordinal (index) of the generic parameter.
kind
Type: PostSharp.Sdk.CodeModel.GenericParameterKind
Kind (Type or Method of this generic parameter.

Return Value

Type: GenericParameterTypeSignature
A GenericParameterTypeSignature with the given ordinal and kind, valid in the current module.
See Also