IGenericInstantiationType

Overview

A generic instantiation type, this is a base generic type that has its parameters specified. While the type List<T> would be an ITypeReference, List<Integer> is an instantiation of the List<T> type with Integer as its parameter. This interface is used to create types like that.

Location


Properties


GenericType

Returns the generic base type

 

property GenericType: IType read;

 

IType GenericType { get; }

 

var GenericType: IType { get{} }

 

IType GenericType { __get; }

 

ReadOnly Property GenericType() As IType

ParameterCount

Returns the number of parameters

 

property ParameterCount: Int32 read;

 

Int32 ParameterCount { get; }

 

var ParameterCount: Int32 { get{} }

 

Int32 ParameterCount { __get; }

 

ReadOnly Property ParameterCount() As Int32

Required Methods


GetParameter

Returns the parameter to a generic instantiation type

 

method GetParameter(no: Int32): IType

 

IType GetParameter(Int32 no)

 

func GetParameter(_ no: Int32) -> IType

 

IType GetParameter(Int32 no)

 

Function GetParameter(no As Int32) As IType

Parameters:

  • no: index