blob: 121f97bbeacd78de934a2719dd6604d629a7d628 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
using System;
namespace jive
{
static public class CommandExtensions
{
static public jive.Command then<Command>(this jive.Command left) where Command : jive.Command, new()
{
return then(left, new Command());
}
static public Command then(this Command left, Command right)
{
return new ChainedCommand(left, right);
}
static public Command then(this Command left, Action right)
{
return new ChainedCommand(left, new AnonymousCommand(right));
}
}
}
|