Browse Source

Make async delegate async.

pull/871/head
M.Hedtke 8 years ago
parent
commit
6755d34426
  1. 1
      ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs

1
ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs

@ -1003,6 +1003,7 @@ namespace ICSharpCode.Decompiler.CSharp @@ -1003,6 +1003,7 @@ namespace ICSharpCode.Decompiler.CSharp
// Create AnonymousMethodExpression and prepare parameters
AnonymousMethodExpression ame = new AnonymousMethodExpression();
ame.IsAsync = function.IsAsync;
ame.Parameters.AddRange(MakeParameters(method, function));
ame.HasParameterList = true;
StatementBuilder builder = new StatementBuilder(typeSystem.GetSpecializingTypeSystem(new SimpleTypeResolveContext(method)), this.decompilationContext, method, function, settings, cancellationToken);

Loading…
Cancel
Save