Class MultiplyStrategy
- Namespace
- WitShells.DesignPatterns.Core
Example strategy that multiplies two integers together.
public class MultiplyStrategy : IStrategy<(int a, int b), int>
- Inheritance
-
MultiplyStrategy
- Implements
- Inherited Members
Methods
Execute((int a, int b))
Executes the algorithm using the supplied context.
public int Execute((int a, int b) context)
Parameters
Returns
- int
The result produced by the algorithm.