return (Func<object, Task<object>>)(async (dynamic data) =>
{
methodCall(data.data, data.more);
return null;
});
From what I gather the above code is doing, it is explicitly casting the lambda function as a delegate, and then returning that delegate (in this case, it is returning to an edgejs function).
When the parens are removed, 8 errors are received from the build process.
Syntax error, ',' expected
; expected
} expected
The name async does not exist in the current context
The name dynamic does not exist in the current context
The name data does not exist in the current context
The name data does not exist in the current context
The name data does not exist in the current context