ninject / Ninject

the ninja of .net dependency injectors
http://ninject.org/
Other
2.68k stars 530 forks source link

Why can't I find the ReadOnlyKernel in the Ninject namespace? #358

Open JoepGeevers opened 5 years ago

JoepGeevers commented 5 years ago

Hi,

I have written a tiny utility that generates the dependency graph given a certain binding. I want to make it slightly smarter, and have it automagically generate the entire dependency graph.

For this to work, I need a reference to the ReadOnlyKernel type that contains the private bindings field.

However, for some reason that I just cannot understand, I cannot find the ReadOnlyKernel in the Ninject namespace anywhere! I'm sure I'm overlooking something simple but it's driving me crazy :)

Would you have any idea what I'm doing wrong or why this is impossible?

Thanks!