Using dependency injection for internal classes inside a library
I'm making a library, where I feel like it would be useful to be able to use Microsoft's dependency injection library in order to deal with dependencies (both inside the library and letting other projects take advantage of it). However, I'm not quite sure how to deal with internal classes. I have a public class that users of the library would instantiate, and this class contains instances of internal classes or classes containing internal classes. I want to pass these in the various constructors to avoid creating them on the spot everywhere, but things like ActivatorUtilities.CreateInstance fail when they have to call an internal constructor at any point, even if it's inside the project itself. Any ideas how to deal with this? I don't want to make everything public!
