Table of Contents

Method TypeIsDescendant

Namespace
Alternet.Common
Assembly
Alternet.Common.v10.dll

TypeIsDescendant(Type, Type)

Returns true if specified type is a descendant of another type.

public static bool TypeIsDescendant(Type type, Type baseTypeToCheck)

Parameters

type Type

Descendant type.

baseTypeToCheck Type

Base type.

Returns

bool

Remarks

This method checks all base types recursively not only the first BaseType value.