TypeExtensions.

IsSubclassOfRawGeneric(Type, Type) Method

Summary

Gets whether or not a given Type is a subclass of an raw/open generic.
Namespace
Cake.Core
Containing Type
TypeExtensions

Syntax

public static bool IsSubclassOfRawGeneric(this Type toCheck, Type generic)

Parameters

Name Type Description
toCheck Type The type to check.
generic Type The open generic to test.

Return Value

Type Description
bool Returns true if the type is a subtype of a raw generic, else false.