Explain the advantages of dependency injection (di) in asp.net mvc?



Explain the advantages of dependency injection (di) in asp.net mvc?..

Answer / Sarmad

Dependency Injection in ASP.NET MVC provides several advantages, such as improved testability, loosely coupled code, and increased flexibility by allowing the decoupling of components and their dependencies.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

Explain tempdata in asp.net mvc?

1 Answers  


Why doesn't the .NET runtime offer deterministic destruction

1 Answers  


Microsoft introduced c# as a de facto language of the .NET platform. What is mean by de facto and fot what purpose? Please answer me. Advance thanks.

3 Answers   Excel,


Asp.net mvc application, makes use of settings at 2 places for routing to work correctly. What are these 2 places?

1 Answers  


How we can add the css in mvc?

1 Answers  


What does CLR do after the IL is generated and machine language is generated .Will it look for main method ?

1 Answers   BWT, MMTS, UIU,


What is the advantage of using asp.net routing?

1 Answers  


Can I add asp.net mvc testcases in visual studio express?

1 Answers  


How the framework differentiate between 2 version dlls? eg Version 2.0 and 2.1 dlls are there. both are referred in the code.but we are using only name of that dll not the version number. in run time how the framework know which dll has to be referred?

1 Answers   Deloitte,


Explain the types of Scaffoldings.

1 Answers  


What are the options can be configured in AJAX helpers?

1 Answers  


What is the use of view model in asp.net mvc?

1 Answers  


Categories