What is the benefit of dependency injection c#?
Answer / Prabhat Chaturvedi
Dependency Injection in C# allows for loose coupling between classes, making code more modular and easier to test. It also simplifies the management of object lifetimes and promotes separation of concerns.
| Is This Answer Correct ? | 0 Yes | 0 No |
Trace the O/p for a program on inheritance and Polymorphism. 3 classes A,B,C A with two methods public virtual SomeMethodA public virtual SomemoreMethodA B:A overide virtual SomeMethodA C:B new Method SomeMethodA override SomeMoreMethodA main method { b new instance of B b.SomeMethodA b.SomeMoreMethodA b1 new instance of C b1.SomeMethodA b1.SomeMoreMethodA }
What is HashTable, what is the use of it, when do we use (purpose).
What is the difference between static class and singleton class in c#?
What does assert() do in c#?
What is interface inheritance in c#?
What is the difference between array and arraylist in c#?
What is constructors, explain with syntax
How are delegates chosen?
Is c# different than c++?
Can an interface extend a class c#?
How to throw an caught exception from cath block?
Explain About web methods and its various attributes
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)