Method | Description | |
---|---|---|
GenericConstructionChecker ( |
||
IncorrectGenerity ( IEntity definition ) : bool |
Checks if the number of generic parameters on a specified definition does not match the number of supplied type arguments.
|
|
NotGenericDefinition ( IEntity entity ) : bool |
Checks if a specified entity is not a generic definition.
|
|
ViolatesParameterConstraints ( IEntity definition ) : bool |
Checks if the given type arguments violate any constraints declared on the type parameters of a specified generic definition.
|
|
ViolatesParameterConstraints ( IGenericParameter parameter, IType argument ) : bool |
Checks if a specified type argument violates the constraints declared on a specified type paramter.
|
Method | Description | |
---|---|---|
HasDefaultConstructor ( IType argument ) : bool |
Checks whether a given type has a default (parameterless) consructor.
|
public GenericConstructionChecker ( |
||
tss | ||
constructionNode | Node | |
typeArguments | IType | |
errorCollection | CompilerErrorCollection | |
return | System |
public IncorrectGenerity ( IEntity definition ) : bool | ||
definition | IEntity | |
return | bool |
public NotGenericDefinition ( IEntity entity ) : bool | ||
entity | IEntity | |
return | bool |
public ViolatesParameterConstraints ( IEntity definition ) : bool | ||
definition | IEntity | |
return | bool |
public ViolatesParameterConstraints ( IGenericParameter parameter, IType argument ) : bool | ||
parameter | IGenericParameter | |
argument | IType | |
return | bool |