BuildMaster SDK Reference
Version:

ImplementsInterface(System.Type toCheck, System.Type iface) Method

Returns a value indicating whether a type implements an interface.

Syntax

public static bool ImplementsInterface(System.Type toCheck, System.Type iface)

Parameters

toCheck
Type: System.Type

The type to check.

iface
Type: System.Type

The interface to search for.

Returns

True if the type implements the interface; otherwise false.

Exceptions

System.ArgumentNullException

An argument is null (Nothing in Visual Basic).

System.ArgumentException

The iface parameter is not an interface type.