如何使用IOC和DI将参数传递给函数 [英] How can pass parameter to function using IOC and DI
本文介绍了如何使用IOC和DI将参数传递给函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到了解释IOC和DI的文章。 设计模式IOC和DI [ ^ ]。但我想知道如何传递参数或参数来调用方法和承包商。请帮帮我。我没有收到任何明确解释这一点的文章。谢谢。
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.
推荐答案
这篇关于如何使用IOC和DI将参数传递给函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文