I’m creating some test WinForms project and trying to create items for my ContextMenuStrip at runtime. But, I can’t add an EventHandler to an event ItemClicked using null-conditional operator (?.):
Why is that happening?
However if I remove null-conditional operator, it works but gives a warning: