static void StrategyExample() { var context = new SomeArray(); context.Sort(); context.ShowItems(); context.Strategy = new ShellSort(); context.Sort(); context.ShowItems(); }