示例#1
0
 public TargetableCommand GetTargetableCommand(Command command)
 {
     TargetableCommand targetableCommand;
     if (!_targetableCommands.TryGetValue(command, out targetableCommand))
         targetableCommand = _targetableCommands[command] = new TargetableCommand(command);
     return targetableCommand;
 }
示例#2
0
        public TargetableCommand GetTargetableCommand(Command command)
        {
            TargetableCommand targetableCommand;

            if (!_targetableCommands.TryGetValue(command, out targetableCommand))
            {
                targetableCommand = _targetableCommands[command] = new TargetableCommand(command);
            }
            return(targetableCommand);
        }