-
Notifications
You must be signed in to change notification settings - Fork 11
Delegate Invoke
Michael Damatov edited this page Nov 15, 2018
·
2 revisions
Show a suggestion when the Invoke
method is used on delegate types.
- Remove the
Invoke
Action action = ... // not null
action.Invoke(); // redundant "Invoke"
action(); // after applying the quick fix
Action action = null
action?.Invoke(); // "Invoke" is not redundant
💡 The analyzer can be deactivated in the ReSharper Options dialog.