Hi All
I have a super class called myBaseClass which implements an event (say myEvent)
I have different subclasses based on myBaseClass (say subclasses1 and subclasses2)
I have something that must use one of these subclasses whatever it is and need to receive calls from myEvent (with “AddHandler”).
→ it is impossible in subclasses1 or subclasses2 to raise myEvent !
The strange thing is that this event is known outside (for adding addhandler) but not by the derived subclasses.
So my workaround is adding a method in myBaseClass only to raise the event.
It doesn’t look very optimized to me…
Does someone has an other idea ?
7 posts - 5 participants