ReflectionUtilities.

IsSubclassOfGenericDefinition(Type, 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, out Type[] genericArguments)

Parameters

Name Type Description
type Type
generic Type
genericArguments Type[]

Return Value

Type Description
bool