Browse Source

#1407: Set CSharpInvocationResolveResult.IsDelegateInvocation = true, if the Invoke call was removed.

pull/1409/head
Siegfried Pammer 7 years ago
parent
commit
343315d2b4
  1. 2
      ICSharpCode.Decompiler/CSharp/CallBuilder.cs

2
ICSharpCode.Decompiler/CSharp/CallBuilder.cs

@ -234,7 +234,7 @@ namespace ICSharpCode.Decompiler.CSharp @@ -234,7 +234,7 @@ namespace ICSharpCode.Decompiler.CSharp
if (method.Name == "Invoke" && method.DeclaringType.Kind == TypeKind.Delegate && !IsNullConditional(target)) {
return new InvocationExpression(target, argumentList.GetArgumentExpressions())
.WithRR(new CSharpInvocationResolveResult(target.ResolveResult, method,
argumentList.GetArgumentResolveResults().ToList(), isExpandedForm: argumentList.IsExpandedForm));
argumentList.GetArgumentResolveResults().ToList(), isExpandedForm: argumentList.IsExpandedForm, isDelegateInvocation: true));
}
if (settings.StringInterpolation && IsInterpolatedStringCreation(method, argumentList) &&

Loading…
Cancel
Save