Alex Rivera | Logout

Test if an object implements an interface

Asked 2009-09-01T02:31:19.363
48

I have an object parameter and I need to check if the object implements a specified interface in vb.net. How to test this?

Thanks.

Edit
Report

1 Answer

4

requiredInterface.IsAssignableFrom(representedType)

both requiredInterface and representedType are Types

answered 2009-09-01T02:42:50.920

Your Answer