prodot / ReCommended-Extension

Code analysis improvements and context actions
Apache License 2.0
59 stars 11 forks source link

Redundant "Invoke" call on delegate types #6

Closed michael-damatov closed 6 years ago

michael-damatov commented 8 years ago

Show a suggestion when the Invoke method is used on delegate types.

Quick Fix

Example

Action action = ... // not null

action.Invoke(); // redundant "Invoke" 

action(); // after applying the quick fix

Exceptions

Action action = null

action?.Invoke(); // "Invoke" is not redundant