Task.Run with Input Parameters and Output
问题 This works great: private void MainMethod() { Task<bool> taskItemFound = new Task<bool>(ItemFound); } private bool ItemFound() { //Do Work return true; } This works but is UGLY and I can't pass more than one parameter: private void MainMethod() { var startNew = Task<bool>.Factory.StartNew(TempMethod, "cow"); } private bool TempMethod(object o) { return ("holy " + o == "holy cow"); } I'm looking for a solution that will give me a Task<bool> from an existing method with more than one input