I’ve just read a blog post about why you should pass interfaces instead of concrete classes as arguments to your methods.
I normally try to think about the most appropriate usages of interfaces for my own classes, but what this post alerted me to was the necessity to use interfaces when working with framework classes.
IE: IDictionary
The reasons the author discusses i believe are quite valid….It’s something i’m going to more actively do when writing code…