Click here to Skip to main content
15,880,608 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
Hi friends, Can we use abstract class in Dependency injection instead of an Interface. please give answer if u have implemented it. no fake replies please. 

?

What I have tried:

i tried adding an abstract class but ut does not work.
Posted
Comments
Mehdi Gholam 16-Nov-16 1:07am    
Abstract classes by definition cannot be created directly.
Tomas Takac 16-Nov-16 3:39am    
I don't see why not. Can you post some code? "It doesn't work" doesn't tell us much.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900