Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7723113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:21:42+00:00 2026-06-01T04:21:42+00:00

I am learning to use dependency injection with ninject. Most of the properties and

  • 0

I am learning to use dependency injection with ninject. Most of the properties and methods are fairly intuitive, one that has me though is Kernel.Inject(instance);

What does the Inject method actually do as it doesn’t return anything. I’ve looked around but search for a method called inject on a dependency injection container is a nightmare, I can’t find any references to the method specifically.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T04:21:44+00:00Added an answer on June 1, 2026 at 4:21 am

    Kernel.Inject(instance) will inject dependencies into an already existing object.

    That’s why it returns void because it takes the parameter object instance and starts to investigate it’s methods and property setters looking for the [Inject] attribute. Then it will call them with the resolved instances of their parameter types. (this is called Method or Property injection)

    So when contructor injection is not enoughpossible you can Kernel.Inject to fill in your dependencies for a given instance.

    You can read more about this here: Ninject Injection Patterns

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm designing a class that has two dependencies. One of the dependency classes has
im learning to use openGL and iv been told that because my wheel arches
I am learning dependency properties. I read many posts & books but still I
I am learning to use HTML5 WebSockets and as part of that I am
Just learning about Dependency Injection and Prism... It seems just asking around alot of
I come from a .NET background, using dependency injection containers like Unity, Ninject, Castle
I've been learning IoC, Dependency Injection etc. and enjoying the process. The benefits of
I am learning how to use nInject for a new application I am developing,
I am learning to use GWT with App Engine in Eclipse. I included the
I am just learning to use Services, and am sort of stuck. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.