ReflectionServiceIsSubClassOfOrImplements(Type, Type) Method |
Determines whether or not a given subtype is derived from a basetype or implements the interface basetypes.
Namespace: Altaxo.Main.ServicesAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static bool IsSubClassOfOrImplements(
Type subtype,
Type[] basetypes
)
Parameters
- subtype Type
- The subtype.
- basetypes Type
- The basetypes. To return true, the subclass must implement all the types given here.
Return Value
BooleanIf basetype is a class type, the return value is true if subtype derives from basetype. If basetype is an interface, the return value is true if subtype implements the interface basetype.
If subtype don't implement one of the types given in basetypes, the return value is false.
See Also