Click here to Skip to main content
15,921,959 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I got the article that explain about IOC and DI. Design Pattern IOC and DI[^]. But I want to know how to pass parameter or arguments to call the methods and contractor. Please help me on this. I am not getting any article that explains that one clearly. Thank you.
Posted
Comments
Tomas Takac 26-Mar-14 17:53pm    
Could you provide a piece of code that would illustrate your problem? Generally you register your classes/instances with a DI container and let it handle creation of new instances. The DI container will automatically provide all constructor parameters.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900