IsGeneric

IsGeneric(Type, Type)

public static bool IsGeneric(Type type, Type genericTypeDefinition) ;

Description

Returns whether it is a generic type constructed from the specified generic type definition.

Parameters

Parameter Name Description
type Type
genericTypeDefinition Generic type definition

Returns

Return true if type is a generic type constructed from genericTypeDefinition.