This question is not specifically related to Ninject. It\'s more of a general coding question, but I\'m posting it here in case there might be a better way entirely of handling
Newer version of Ninject has this method if used with System.Web.MVC:
var obj = DependencyResolver.Current.GetService();
Unless you need to manipulate DI bindings on the fly, but instantiating a StandardKernel is a little heavy.
IKernel kernel = new StandardKernel();
var obj = DependencyResolver.Current.GetService();