Ok, I am trying to figure out how to tell if a class (not object) implements
a particular interface. Using the "is" operator does not seem to work for
me and I assume its because I have a class, not an object I am wanting to
check.
Here's my scenario. I am dynamically loading assemblies (dlls) at runtime.
I am getting the list of types from each assembly, and if that type
implements a particular interface, then and only then do I want to
instantiate one. I have seen several articles showing how to do the dynamic
loading, but I haven't seen anyone address this issue. Perhaps in a given
assembly, there are helper types that do not implement the interface and I
wouldn't want to instantiate one of them. How can I verify that a type
(System.Type) implements a particular interface?
Thanks.