The new Task.Run static method that\'s part of .NET 4.5 doesn\'t seem to behave as one might expect.
For example:
Task t = Task.Run(()=&
Here's my stab at it:
public class MyTest { public void RunTest() { Task t = Task.Run(new Func(MyIntReturningMethod)); t.Wait(); Console.WriteLine(t.Result); } public int MyIntReturningMethod() { return (5); } }