ReflectionUtilities.

IsSubclassOfGenericDefinition(Type, Type) Method

Summary

Checks if `type` is descended from `generic` (where `generic` is a generic type definition).
Assembly
Weaver.dll
Namespace
Weaver
Containing Type
ReflectionUtilities

Syntax

public static bool IsSubclassOfGenericDefinition(this Type type, Type generic)

Parameters

Name Type Description
type Type
generic Type

Return Value

Type Description
bool