JaCIL Framework API

ICompilerReferences.IsDerivedFrom Method (TypeReference, TypeReference)

Returns whether a given type derived from another.

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.

Exceptions

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

See Also

ICompilerReferences Interface | JaCIL.Compiler Namespace | ICompilerReferences.IsDerivedFrom Overload List