G
Glenn Thimmes
Hello,
I am trying to understand the proper way to test an object to find out if it
supports a specific interface. Right now, the only way I know to accomplish
this is to attempt casting it to that interface and then catch the exception
if one is thrown. This doesn't seem like the correct way to be doing this.
Any suggestions? I assume I'm missing something pretty basic.
Thanks in advance!
-Glenn
I am trying to understand the proper way to test an object to find out if it
supports a specific interface. Right now, the only way I know to accomplish
this is to attempt casting it to that interface and then catch the exception
if one is thrown. This doesn't seem like the correct way to be doing this.
Any suggestions? I assume I'm missing something pretty basic.
Thanks in advance!
-Glenn