diff options
Diffstat (limited to 'lib/utility/CommandExtensions.cs')
| -rw-r--r-- | lib/utility/CommandExtensions.cs | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/lib/utility/CommandExtensions.cs b/lib/utility/CommandExtensions.cs index 6396261..c49f469 100644 --- a/lib/utility/CommandExtensions.cs +++ b/lib/utility/CommandExtensions.cs @@ -1,22 +1,22 @@ -using System;
-
-namespace gorilla.utility
-{
- static public class CommandExtensions
- {
- static public utility.Command then<Command>(this utility.Command left) where Command : utility.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));
- }
- }
-}
\ No newline at end of file +using System; + +namespace jive.utility +{ + static public class CommandExtensions + { + static public utility.Command then<Command>(this utility.Command left) where Command : utility.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)); + } + } +} |
