Why use services (IServiceProvider)?

前端 未结 4 930
执念已碎
执念已碎 2020-12-13 20:42

I\'m coming to this question from exploring the XNA framework, but I\'d like a general understanding.

ISomeService someService = (ISomeService)Game.GetServic         


        
4条回答
  •  自闭症患者
    2020-12-13 21:39

    See http://en.wikipedia.org/wiki/Dependency_inversion_principle (and it's links) for a good start as to the architectural principles behind it

提交回复
热议问题