is it possible to implement strategy pattern with different parameters in VB.net? For example I have the following code:
Must a class that is a \"gang of four\" strategy be completely stateless (ie no fields) or can it contain immutable state (ie final f开发者_如何学Cields)?A strategy class encapsulates an action, not a
I need to process a list of records returned from a service. However the processing algorithm for a record changes completely based on a certain field on the record.
I know this question\'s been asked before (e.g., What is the difference between the bridge pattern and the strategy pattern?).
I have the requirement to calculate an internal hashcode of instances of several types (some types are derived from each other). Two aspect开发者_开发知识库s are dynamic here and can vary independentl
I\'m raising this question because of another question I asked here on SO some days ago. I had to solve an sp开发者_运维知识库ecific problem, and after two replies I got, I realized two patterns can h
I have a piece of code where I started to put the strategy pattern in place, say as follows: IStrategy
My application will have different strategies for my objects. What is the best way to implement that? Ideally, I would like to dynamically load the strategy implementations from, say, some relational
I\'m using this pattern for the first time, and using C#. I just wanted to check that this is the correct implementation.
When I\'m programming in Java (or a similar language), I often employ a simple version of the Strategy pattern, using interfaces and implementation classes, to provide runtime-selectable implementatio