IsGeneric
public static bool IsGeneric(Type type, Type genericTypeDefinition) ;
Returns whether it is a generic type constructed from the specified generic type definition.
Parameter Name | Description |
---|---|
type | Type |
genericTypeDefinition | Generic type definition |
Return true if type is a generic type constructed from genericTypeDefinition.