Table of Contents

Method TypeIsDescendant

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

TypeIsDescendant(Type, Type[])

Returns true if type is a descendant of any type in the array of types.

public static bool TypeIsDescendant(Type type, Type[] baseTypes)

Parameters

type Type

Type to check.

baseTypes Type[]

Base types array.

Returns

bool

Remarks

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

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.