This link has been bookmarked by 3 people . It was first bookmarked on 03 Nov 2009, by Javier Neira.
-
-
Now our class not only doesn't have to worry about creating the DataTableReader, it doesn't even really care if it gets a DataTableReader at all. All it cares about is that the reader is referencing something that implements the IDataReader interface. This is a type of inversion of control. Most of the time people get confused between inversion of control and a container that enables inversion of control and dependency injection (like Ninject, StructureMap or Unity). You don't have to use a container to utilize these two techniques, it just makes it a little easier.
-
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.