We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Show a suggestion when the Invoke method is used on delegate types.
Invoke
Action action = ... // not null action.Invoke(); // redundant "Invoke" action(); // after applying the quick fix
Action action = null action?.Invoke(); // "Invoke" is not redundant
Tip
A quick fix is available to remove the Invoke method call.
Note
The analyzer can be configured or deactivated in the ReSharper Options or Rider Settings dialog.