open navigation menu
AiFolder
Tools for a smarter you
Discover
Tools
AI
Games
Interviews
Blog
More
Search AiFolder
Toggle theme
Toggle theme
Sign in
Exit
00:00
Submit test
Dependency Injection · Advanced
9 questions · Question 1 of 9
11%
Multiple Choice
Expert
How to Dispose resources with Dependency Injection?
A
With the ServiceLocator, the class is still responsible for creating its dependencies.
B
When designing services for dependency injection: Avoid stateful, static classes and members.
C
The general rule of resources is that: He who owns the resource is responsible of disposing of it.
D
The Inversion of Control (IoC) pattern, is about providing any kind of callback (which "implements" and/or controls reaction), instead of acting ourselves directly (in other words, inversion and/or redirecting control...
Previous
Next