public interface ICalcStrategy{ double Calculate(double amount);}public static class NumberCalculation{ public static double[] CalculateTaxes(double[] numbers, ICalcStrategy calcStrategy) { double[] result = new double[numbers.Length]; for (int i = 0; i < numbers.Length; i++) result[i] = calcStrategy.Calculate(numbers[i]); return result; }}