PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Type­Spec­Declaration Class / Type­Spec­Declaration Methods / Type­Spec­Declaration.​Get­Generic­Argument Method

TypeSpecDeclaration.GetGenericArgument Method

Gets a generic (concrete, bound) argument given its ordinal.

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 ITypeSignature GetGenericArgument(
	int ordinal
)

Parameters

ordinal
Type: System.Int32
The generic argument ordinal (position).

Return Value

Type: ITypeSignature
An IType, or null if the current generic original does not exist.

Implements

IGenericInstance.GetGenericArgument(Int32)
See Also