Method TypeEqualsOrDescendant
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
Returns
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
Returns
Remarks
This method checks all base types recursively not only the first BaseType value.