IGenericParameterType
Overview
A generic parameter type defintion. This IType interface can be used to query information about a generic parameter type.
Location
- Reference: RemObjects.Elements.Cirrus.dll
- Namespace: RemObjects.Elements.Cirrus
- Ancestry: IType | IGenericParameterType
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
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