I have two classes A and B. In class A, I have an EventA event
public delegate void FolderStructureChangedHandler(); public event FolderStructureChangedHandler EventA;
In class B, I have the same event called EventB. In the method of my application, I want to add all the handlers registered in EventA to the EventB event
A classA = new classA(); classA.EventA += delegate1(); classA.EventA += delegate2(); B classB = new classB(); classB.EventB += classA.EventA;
This will cause the error "... EventA event can appear only on the left side + = or - = ...". I do not know how to do that.
I figure out a way to list all the handlers in EventA, but I donβt know how to do it. Please, help.
source share