Why do I need global: here?

I ran into ... I don't think I would call this a problem as much as I would be a fad. It confuses and confuses me.

I am adding Ninjectto my site. It is working fine. There are no Ninject troubleshooting questions, but I came across this when setting up my modules ...

Here is my file SessionModule.cs.

namespace Lightcast.Web.Mvc.Injection.Modules {
    public class SessionModule : Ninject.Modules.NinjectModule {

        public override void Load() {
        }
    }
}

Also shown in this screenshot.

SessionModule.cs

I get an error

Unknown type 'Modules' Lightcast.Web.Mvc.Injection.Ninject

Now, if I change it to this ...

SessionModule.cs (2)

It works great. Thus, it is obvious that there is a namespace conflict. That I do not understand why ? I have never encountered this before. It just seems to me that this is the most unusual thing.

+3
2

, - Lightcast.Web.Mvc.Injection.Ninject, NInject.

+5

Ninject - Lightcast.Web.Mvc.Injection.Modules .

- , # , , .

+4

All Articles