O'Reilly logo
  • Darryl T Skeard thinks this is interesting:

following

From

Cover of Dependency Injection in .NET

Note

I don't understand why the author inherits from ProductRepository and also injects ProductRepository via the constructor, in the listing below. Could he not have just done one or the other? E.g. base.SelectProduct(id) would be equivalent to - and more concise than - this.innerRepository.SelectProduct(id).