Possible duplicate:What is control inversion?
I am not familiar with inverse control (IoC). What is IoC and how applications can use IOC. How is this implemented in .NET with C #?
If you have a set of classes that depend on eachother, it is difficult to replace a class with another (better / cheaper / faster) class that does the same job. To make your code more flexible, you can use dependency injection .
The easy-to-use DI framework for C # is Ninject. They have a very clear tutorial on this.
References:
http://ninject.org/learn
http://blog.andresays.org/2010/10/dependency-injection-with-ninject-and-asp-net-mvc/
Good luck
Source: https://habr.com/ru/post/1336458/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1336453/xslt-how-can-i-apply-two-templates-to-the-same-node-during-processing&usg=ALkJrhixQ5J4eOsUJTp_ar6GVOkaSiO2bgcomparing enum from a template class - is it safe? - c ++Mono.Cecil: operation can destabilize at runtime - c #Readymade Cocoa Spotlight User Interface Components - user-interfaceTransfer files using checksums only? - mathConvert JSON-formatted string to JsonObject using Jayrock - jsonHow can I perform a vacuum using PostgreSQL? - sqlCan someone give me a good guide on migrating from C # to Java? - javaPayPal Web Payment Standard: force the creation of a PayPal account now? - paypalHow to avoid SynchronizationLockException? - multithreadingAll Articles