예제 #1
0
 public Command(Commands command, params object[] args)
 {
     this.Rule = CommandRules.Rules(command);
     this.Validate(command, args);
     this.Arguments = args;
     this.Immediate = this.Rule.IsImmediate;
 }
예제 #2
0
 public Command(Commands command, params object[] args)
 {
     Rule = CommandRules.Rules(command);
     Validate(command, args);
     Arguments = args;
     Immediate = Rule.Immediate;
 }
예제 #3
0
 public override string ToString()
 {
     return(CommandRules
            .Rules(this.Rule.Command)
            .ToString(this.Arguments));
 }