Hello,
Did you look at Task.Run signatures? because you can't really do it like this, however, you can use/take old-school approach.
public Task<double> FooAsync(double P1, double P2)
{
return Task.Run(delegate() {
double val = P1 + P2;
return val;
});
}
P.S. Not sure why you're against lambdas. :)
Regards,
Eyal Shilony
No comments:
Post a Comment