Basically I wanna know if all the types in a particular namespace implements a particular interface like IEnumerable
.
I know I can do:
foreach type ...
if type is IEnumerable
...
But I don't wanna cast the type just to query if it implements an interface, because the cast will be thrown away either way.