Avoiding dependency carrying

Posted by dotnetdev on Stack Overflow See other posts from Stack Overflow or by dotnetdev
Published on 2010-06-01T20:56:07Z Indexed on 2010/06/02 5:43 UTC
Read the original article Hit count: 201

When coding, I often come across the following pattern:

-A method calls another method (Fine), but the method being called/callee takes parameters, so in the wrapping method, I pass in parameters. Problem is, this dependency carrying can go on and on. How could I avoid this (any sample code appreciated)?

Thanks

© Stack Overflow or respective owner

Related posts about dependency-injection

Related posts about programming