How can I find out if an object implements an interface? In other words I need a possibility to check if an object can be cast to a specific type (e.g. a specific interface).
How to find out if an interface is implemented?
you can try to create the object and catch with a class not found exception i guess.
i want to check an existing object, if it implements an interface. i can do a cast and catch an exception, but that can't be the ultimate answer... –
Becht
© 2022 - 2024 — McMap. All rights reserved.