In C#6 a delegate can be invoked using the null-propagating operator (?.) and it’s invoke method to avoid throwing a NullReference exception when there is no method attached to the delegate.
Example
Code fix
A code fix will be presented to you that will transform the code:
Related rules
CC0016 - Won’t be suggested if the handler is copied to a local variable