IGenericParameterType

Overview

A generic parameter type defintion. This IType interface can be used to query information about a generic parameter type.

Location


 

ConstraintCount

Returns the number of constraints

 

property ConstraintCount: Int32 read;

 

Int32 ConstraintCount { get; }

 

var ConstraintCount: Int32 { get{} }

 

Int32 ConstraintCount { __get; }

 

ReadOnly Property ConstraintCount() As Int32

GetConstraint

Returns a contraint

 

method GetConstraint(no: Int32): IType

 

IType GetConstraint(Int32 no)

 

func GetConstraint(_ no: Int32) -> IType

 

IType GetConstraint(Int32 no)

 

Function GetConstraint(no As Int32) As IType

Parameters:

  • no: constraint index

HasEmptyConstructor

Returns true if this generic parameter has the parameterless constructor constraint

 

property HasEmptyConstructor: Boolean read;

 

Boolean HasEmptyConstructor { get; }

 

var HasEmptyConstructor: Boolean { get{} }

 

Boolean HasEmptyConstructor { __get; }

 

ReadOnly Property HasEmptyConstructor() As Boolean

IsReferenceType

Returns true if this generic parameter has a reference type constraint

 

property IsReferenceType: Boolean read;

 

Boolean IsReferenceType { get; }

 

var IsReferenceType: Boolean { get{} }

 

Boolean IsReferenceType { __get; }

 

ReadOnly Property IsReferenceType() As Boolean

IsValueType

Returns true if this generic parameter has a value type constraint

 

property IsValueType: Boolean read;

 

Boolean IsValueType { get; }

 

var IsValueType: Boolean { get{} }

 

Boolean IsValueType { __get; }

 

ReadOnly Property IsValueType() As Boolean

Variance

Returns the variance

 

property Variance: GenericParameterVariance read;

 

GenericParameterVariance Variance { get; }

 

var Variance: GenericParameterVariance { get{} }

 

GenericParameterVariance Variance { __get; }

 

ReadOnly Property Variance() As GenericParameterVariance

 

ConstraintCount

Returns the number of constraints

 

property ConstraintCount: Int32 read;

 

Int32 ConstraintCount { get; }

 

var ConstraintCount: Int32 { get{} }

 

Int32 ConstraintCount { __get; }

 

ReadOnly Property ConstraintCount() As Int32

HasEmptyConstructor

Returns true if this generic parameter has the parameterless constructor constraint

 

property HasEmptyConstructor: Boolean read;

 

Boolean HasEmptyConstructor { get; }

 

var HasEmptyConstructor: Boolean { get{} }

 

Boolean HasEmptyConstructor { __get; }

 

ReadOnly Property HasEmptyConstructor() As Boolean

IsReferenceType

Returns true if this generic parameter has a reference type constraint

 

property IsReferenceType: Boolean read;

 

Boolean IsReferenceType { get; }

 

var IsReferenceType: Boolean { get{} }

 

Boolean IsReferenceType { __get; }

 

ReadOnly Property IsReferenceType() As Boolean

IsValueType

Returns true if this generic parameter has a value type constraint

 

property IsValueType: Boolean read;

 

Boolean IsValueType { get; }

 

var IsValueType: Boolean { get{} }

 

Boolean IsValueType { __get; }

 

ReadOnly Property IsValueType() As Boolean

Variance

Returns the variance

 

property Variance: GenericParameterVariance read;

 

GenericParameterVariance Variance { get; }

 

var Variance: GenericParameterVariance { get{} }

 

GenericParameterVariance Variance { __get; }

 

ReadOnly Property Variance() As GenericParameterVariance

 

GetConstraint

Returns a contraint

 

method GetConstraint(no: Int32): IType

 

IType GetConstraint(Int32 no)

 

func GetConstraint(_ no: Int32) -> IType

 

IType GetConstraint(Int32 no)

 

Function GetConstraint(no As Int32) As IType

Parameters:

  • no: constraint index