IGenericParameterTypeDefinition
Overview
This interface can be used to define new and modify existing generic parameter types.
Location
- Reference: RemObjects.Elements.Cirrus.dll
- Namespace: RemObjects.Elements.Cirrus
AddConstraint
Add a new constraint
method AddConstraint(value: IType)
void AddConstraint(IType value)
func AddConstraint(_ value: IType)
void AddConstraint(IType value)
Sub AddConstraint(value As IType)
Parameters:
- value: constraint type to add
HasEmptyConstructor
Gets or sets a "has parameterless constructor" constraint
property HasEmptyConstructor: Boolean read write;
Boolean HasEmptyConstructor { get; set; }
var HasEmptyConstructor: Boolean { get{} set{} }
Boolean HasEmptyConstructor { __get; __set; }
Property HasEmptyConstructor() As Boolean
IsReferenceType
Gets or sets a reference type constraint
property IsReferenceType: Boolean read write;
Boolean IsReferenceType { get; set; }
var IsReferenceType: Boolean { get{} set{} }
Boolean IsReferenceType { __get; __set; }
Property IsReferenceType() As Boolean
IsValueType
Gets or sets a value type constraint
property IsValueType: Boolean read write;
Boolean IsValueType { get; set; }
var IsValueType: Boolean { get{} set{} }
Boolean IsValueType { __get; __set; }
Property IsValueType() As Boolean
Name
Name of this parameter
property Name: String read write;
String Name { get; set; }
var Name: String { get{} set{} }
String Name { __get; __set; }
Property Name() As String
RemoveConstraint (Int32)
Remove a constraint from the constraints list
method RemoveConstraint(no: Int32)
void RemoveConstraint(Int32 no)
func RemoveConstraint(_ no: Int32)
void RemoveConstraint(Int32 no)
Sub RemoveConstraint(no As Int32)
Parameters:
- no: index
RemoveConstraint (IType)
Remove a constraint from the constraints list
method RemoveConstraint(value: IType)
void RemoveConstraint(IType value)
func RemoveConstraint(_ value: IType)
void RemoveConstraint(IType value)
Sub RemoveConstraint(value As IType)
Parameters:
- value: type to remove
Variance
Remove a constraint from the constraints list
property Variance: GenericParameterVariance read write;
GenericParameterVariance Variance { get; set; }
var Variance: GenericParameterVariance { get{} set{} }
GenericParameterVariance Variance { __get; __set; }
Property Variance() As GenericParameterVariance
HasEmptyConstructor
Gets or sets a "has parameterless constructor" constraint
property HasEmptyConstructor: Boolean read write;
Boolean HasEmptyConstructor { get; set; }
var HasEmptyConstructor: Boolean { get{} set{} }
Boolean HasEmptyConstructor { __get; __set; }
Property HasEmptyConstructor() As Boolean
IsReferenceType
Gets or sets a reference type constraint
property IsReferenceType: Boolean read write;
Boolean IsReferenceType { get; set; }
var IsReferenceType: Boolean { get{} set{} }
Boolean IsReferenceType { __get; __set; }
Property IsReferenceType() As Boolean
IsValueType
Gets or sets a value type constraint
property IsValueType: Boolean read write;
Boolean IsValueType { get; set; }
var IsValueType: Boolean { get{} set{} }
Boolean IsValueType { __get; __set; }
Property IsValueType() As Boolean
Name
Name of this parameter
property Name: String read write;
String Name { get; set; }
var Name: String { get{} set{} }
String Name { __get; __set; }
Property Name() As String
Variance
Remove a constraint from the constraints list
property Variance: GenericParameterVariance read write;
GenericParameterVariance Variance { get; set; }
var Variance: GenericParameterVariance { get{} set{} }
GenericParameterVariance Variance { __get; __set; }
Property Variance() As GenericParameterVariance
AddConstraint
Add a new constraint
method AddConstraint(value: IType)
void AddConstraint(IType value)
func AddConstraint(_ value: IType)
void AddConstraint(IType value)
Sub AddConstraint(value As IType)
Parameters:
- value: constraint type to add
RemoveConstraint (Int32)
Remove a constraint from the constraints list
method RemoveConstraint(no: Int32)
void RemoveConstraint(Int32 no)
func RemoveConstraint(_ no: Int32)
void RemoveConstraint(Int32 no)
Sub RemoveConstraint(no As Int32)
Parameters:
- no: index
RemoveConstraint (IType)
Remove a constraint from the constraints list
method RemoveConstraint(value: IType)
void RemoveConstraint(IType value)
func RemoveConstraint(_ value: IType)
void RemoveConstraint(IType value)
Sub RemoveConstraint(value As IType)
Parameters:
- value: type to remove