Versioni
| Avoid gratuitous subclasses by dynamically invoking different methods for different instances. Descritto nel libro 'Test-Driven Development: By Example', Kent Beck, Three Rivers Institute, 2002 E una variazione del PatternTemplateMethod. How do you invoke different behavior for different instances? Store the name of a method, and dynamically invoke the method. The Pluggable Selector solution is to dynamically invoke the method using reflection. Only use Pluggable Selector when you are cleaning up a fairly straightforward situation in which a bunch of subclasses each have only one method. | UGIdotNETWikiUGIdotNETWiki è il WikiWiki italiano dedicato a .NET Se è la prima volta che senti parlare di Wiki, leggi il BenvenutoAiVisitatori e WikiInUnMinuto, oppure il ManualePassoPassoDelWiki. Argomenti Recenti | ||||||||||||||||||||||||||||||||
| © 2008 User Group Italiano UGIdotNET. Tutti i diritti riservati. Note legali | ||||||||||||||||||||||||||||||||||