JaCIL Framework API

CompilerReferences.IsDerivedFrom Method (TypeReference, TypeReference)

Returns whether a given type derived from another.

public bool IsDerivedFrom(
   TypeReference child,
   TypeReference parent
);

Parameters

child
The Cecil type to determine for.
parent
The Cecil type to determine if the child is a sub class.

Return Value

True if and only if the first argument is derived from the second or the first argument is the same type as the second.

Implements

ICompilerReferences.IsDerivedFrom

Exceptions

Exception Type Condition
ReferenceException If any type could not be resolved.

See Also

CompilerReferences Class | JaCIL.Compiler Namespace | CompilerReferences.IsDerivedFrom Overload List