Browse Source

Merge pull request #871 from mohe2015/async-delegate

Make async delegate async.
pull/873/head
Daniel Grunwald 8 years ago committed by GitHub
parent
commit
352cf9d258
  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