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

DeclarationCache.GetGenericParameterArray Method

Creates an array of GenericParameterTypeSignature with incremental ordinals.

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 IList<ITypeSignature> GetGenericParameterArray(
	int length,
	GenericParameterKind kind
)

Parameters

length
Type: System.Int32
Array length.
kind
Type: PostSharp.Sdk.CodeModel.GenericParameterKind
Kind of generic parameter.

Return Value

Type: IList<ITypeSignature>
An array of ITypeSignature that can be used to construct a generic type or method instance with generic parameters like <!0, !1, ..., !length> or <!!0, !!1, ..., !!length>
See Also