main
1namespace gorilla.commons.utility
2{
3 public class ChainedCommand<T> : Command<T>
4 {
5 Command<T> left;
6 Command<T> right;
7
8 public ChainedCommand(Command<T> left, Command<T> right)
9 {
10 this.left = left;
11 this.right = right;
12 }
13
14 public void run_against(T item)
15 {
16 left.run_against(item);
17 right.run_against(item);
18 }
19 }
20}