메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
HasDefaultConstructor ( IType argument ) : bool |
Checks whether a given type has a default (parameterless) consructor.
|
public GenericConstructionChecker ( |
||
tss | ||
constructionNode | Node | |
typeArguments | IType | |
errorCollection | CompilerErrorCollection | |
리턴 | System |
public IncorrectGenerity ( IEntity definition ) : bool | ||
definition | IEntity | |
리턴 | bool |
public NotGenericDefinition ( IEntity entity ) : bool | ||
entity | IEntity | |
리턴 | bool |
public ViolatesParameterConstraints ( IEntity definition ) : bool | ||
definition | IEntity | |
리턴 | bool |
public ViolatesParameterConstraints ( IGenericParameter parameter, IType argument ) : bool | ||
parameter | IGenericParameter | |
argument | IType | |
리턴 | bool |