Imagine the following: You have an external library that you want to use and it isn't documented that well. You know that there is a class "Parent" with a method Add. Add takes an Object of the interface "IChild".
How can I list all classes, especially in that library, that implement this interface? (By that I mean visually in the editor not in code)
I found some threads about this but none of them really answered my question. All of them were about listing your own implementations of an interface in your namespace (and that works fine for me).
Just to make the problem clearer:
Let me take the ConfigurationBuilder from .Net core. The first thing I found about it in the internet is that I can call new ConfigurationBuilder().Add(IConfigurationSource)
. Then I wondered how I can get an IConfigurationSource. My next step would be to google for the documentation or some examples on this platform. But I imagine that that's not the completely right way of doing things. I think you should be able to go to IConfigurationSource, and look through classes from the ConfigurationBuilder that implement this interface so that you can find it yourself. Always googling for examples or docs can't be the only way to go.
(I use Visual Studio 2019 Community)