The text of this article is not in this database — only its details are. Read it on the old site: Constructor Dependency Injection Pattern Implementation in C#
8 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

Sumit SharmaPosted Sep 8, 2018, 5:50 AM
Well Explained!
var kumarPosted Mar 22, 2018, 2:22 AM
Can i use class instead of interface. http://rextester.com/WTW14311
Gowtham RajamanickamPosted Mar 13, 2015, 5:23 AM
Good article !
Ramesh beruguPosted Dec 26, 2014, 1:16 AM
Can we pass EventViewerLogger and FileLogger in the form of List<IErrorLogger> to log info at more than one place, like public OperationEvent(IErrorLogger logger) { this.logger = logger; }
Sagar NanivadekarPosted Dec 10, 2014, 1:13 AM
how when we want to log to both file and event log ?
Ramesh beruguPosted Oct 7, 2014, 10:58 PM
How can we implement if we want to log exceptions into files and event viewer as well ?
Sandeep Singh ShekhawatPosted May 28, 2014, 2:19 AM
What do you think that how this code can't resolve ?
Akhil MittalPosted May 28, 2014, 1:31 AM
Does this code resolve the dependency fully???