c# Programming Glossary: thingmaker
Is there an alternative to bastard injection? (AKA poor man's injection via default constructor) http://stackoverflow.com/questions/6733667/is-there-an-alternative-to-bastard-injection-aka-poor-mans-injection-via-defa a proper dependency injection constructor public class ThingMaker ... public ThingMaker IThingSource source _source source But.. injection constructor public class ThingMaker ... public ThingMaker IThingSource source _source source But then for classes I am.. constructor with the most likely needed dependency public ThingMaker this new DefaultThingSource ... The obvious drawback here is..
|