I have a project contains many references.
I need to find all the types that implement IMyInterface interface.
I tried AppDomain.CurrentDomain.GetAssemblies().SelectMany(x => x.GetTypes()) but it didn’t returned all the types in the references.
How do I do that?
I guess the problem might be that some of your referenced assemblies are not currently loaded. You can get all referenced assemblies with GetReferencedAssemblies – but this will only yield the names.
If you want you can go on and load the assemblies with Assembly.Load and inspect them further.
So a possible snippet should be
to search for the types implementing your interface:
If this does not the trick I’m lost as well…