I have two classes A and B. In class A, I have an event EventA
public delegate void FolderStructureChangedHandler();
public event FolderStructureChangedHandler EventA;
In class B, I have the same event which named EventB. In the a method of my application, I want to add all of the handlers registered to EventA to the event EventB
A classA = new classA();
classA.EventA += delegate1();
classA.EventA += delegate2();
B classB = new classB();
classB.EventB += classA.EventA;
This will raise error "...The event 'EventA' can only appear on the left hand side of += or -= ...". I don't know how to make it.
I figure out of a way to enumerate all handlers in EventA but don't know how to. Please help.