private void execute(ShellCmdLet shellCmdLet) { var returnData = DI.reflection.invoke(null,shellCmdLet.methodToExecute, shellCmdLet.cmdParameters); shellIO.lastExecutionResult = (returnData!=null) ? returnData.ToString() : ""; if (returnData != null) shellIO.writeLineWithPreAndPostNewLine(returnData.ToString()); }
private void execute(ShellCmdLet shellCmdLet) { var returnData = DI.reflection.invoke(null, shellCmdLet.methodToExecute, shellCmdLet.cmdParameters); shellIO.lastExecutionResult = (returnData != null) ? returnData.ToString() : ""; if (returnData != null) { shellIO.writeLineWithPreAndPostNewLine(returnData.ToString()); } }