public Tool GetTool(string toolName) { Tool retVal = null; var foundTool = ToolPath.FirstOrDefault((item) => item.Name == toolName); if (foundTool != null) { retVal = foundTool; } return(retVal); }
public string GetToolPath(string toolName) { string retVal = ""; var foundTool = ToolPath.FirstOrDefault((item) => item.Name == toolName); if (foundTool != null) { retVal = foundTool.Path; } return(retVal); }
public bool IsToolAvailable(string toolName) { var foundTool = ToolPath.FirstOrDefault((item) => item.Name == toolName); return(foundTool != null); }