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