If TypeOf myCollection Is ICollectible Then
' myCollection implements ICollectible
End If
If GetType(ICollectible).IsAssignableFrom(myCollectio n.GetType) Then
'again, myCollection implements ICollectible
End If
In C#, I believe you can use the typeof keyword to get the type of an
object.
Also, You can use the Type.GetInterfaces method to get a collection of type
objects for all the interfaces implemented by an object. You can also use
the Type.GetInterface method to get an interface by name.
hope that helps..
Imran.
"Geoff Pennington" <Ge*******@verizon.netNoSpam> wrote in message
news:ev**************@TK2MSFTNGP14.phx.gbl...
Is there an easy way to find out what classes implement a given interface?
For example, it might be useful to know what classes implement
ICollectible.
Much obliged,
Geoff.