Table of Contents

Method TypeEqualsOrDescendant

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

TypeEqualsOrDescendant(Type, Type[])

Returns true if specified type equals any type from baseTypes or is a descendant of that type.

public static bool TypeEqualsOrDescendant(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.

TypeEqualsOrDescendant(Type, Type)

Returns true if specified type equals baseType or is a descendant of that type.

public static bool TypeEqualsOrDescendant(Type type, Type baseType)

Parameters

type Type

Type to check.

baseType Type

Base type.

Returns

bool

Remarks

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