Interface ICsGenericParameter
Model contract for information about a parameter used in a generic definition.
Inherited Members
Namespace: CodeFactory.WinVs.Models.CSharp
Assembly: CodeFactory.WinVs.dll
Syntax
public interface ICsGenericParameter : ICsModel, IModelStatus
Properties
ConstrainingTypes
The constraining types the generic parameter must ad hear to. If there are no constraining types an empty list will be returned.
Declaration
IReadOnlyList<CsType> ConstrainingTypes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<CsType> |
HasClassConstraint
Flag that determines if the generic parameter has a constraint that it must implement from a class.
Declaration
bool HasClassConstraint { get; }
Property Value
Type | Description |
---|---|
bool |
HasConstraintTypes
Flag that determines if the generic parameter has constraining types the parameter must ad hear to.
Declaration
bool HasConstraintTypes { get; }
Property Value
Type | Description |
---|---|
bool |
HasNewConstraint
Flag that determines if the generic parameter has a constraint that is must support construction of a new type.
Declaration
bool HasNewConstraint { get; }
Property Value
Type | Description |
---|---|
bool |
HasOutKeyword
Flag that determines if the generic parameter uses the out keyword.
Declaration
bool HasOutKeyword { get; }
Property Value
Type | Description |
---|---|
bool |
HasStructConstraint
Flag that determines if the generic parameter has a constraint that is must implement from a structure.
Declaration
bool HasStructConstraint { get; }
Property Value
Type | Description |
---|---|
bool |
Type
The type definition of the generic parameter.
Declaration
CsType Type { get; }
Property Value
Type | Description |
---|---|
CsType |