Share via


Type.implementsInterface Method

Determines whether a class implements a specified interface type.

var implementsVar = typeInstanceVar.implementsInterface(interfaceType)

Parameters

  • interfaceType
    The interface to test.

Return Value

true if the class implements interfaceType; otherwise, false.

Remarks

Use the implementsInterface method to determine whether a class implements a specific interface. The implementsInterface method verifies both the registered interfaces and registered base class interfaces of the current class.

Description

The following example shows how to use the implementsInterface method to determine whether a class implements a specific interface.

See Also

Reference

Type Class