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.
There was an error while loading. Please reload this page.