What is the difference between following 2 ways of subscribing for an event?
receiver.ConfigChanged += Config_ConfigChanged;
receiver.ConfigChanged += new E
Correct me if i'm wrong, but i don't know if this works
receiver.ConfigChanged += new EventHandler(Config_ConfigChanged);
receiver.ConfigChanged -= new EventHandler(Config_ConfigChanged);
Since these are 2 different instances I think this would
var configChanged = new EventHandler(Config_ConfigChanged);
receiver.ConfigChanged += configChanged;
receiver.ConfigChanged -= configChanged;
But then again, why not just use
receiver.ConfigChanged += Config_ConfigChanged;
receiver.ConfigChanged -= Config_ConfigChanged;