isImplemented

Check if the type that has a static classinfo property is implemented by the object instance or not. Intended for avoiding typecasting incidents.

public @safe nothrow
bool
isImplemented
(
T
)
(
Object o
)

Parameters

o Object

The object instance to be tested. Template params:

T

The class or interface type to check for.

Return Value

Type: bool

True if the class is of a given type or have inherited from it, false otherwise.

Meta