Interface IDotNetGenericParameter
Model contract for information about a parameter used in a generic definition.
Inherited Members
Namespace: CodeFactory.DotNet
Assembly: CodeFactory.DotNet.dll
Syntax
public interface IDotNetGenericParameter : IDotNetModel, IModelStatus
Properties
| Improve this Doc View SourceConstrainingTypes
The constraining types the generic parameter must ad hear to. If there are no constraining types an empty list will be returned.
Declaration
IReadOnlyList<IDotNetType> ConstrainingTypes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<IDotNetType> |
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
IDotNetType Type { get; }
Property Value
Type | Description |
---|---|
IDotNetType |