I've got a class which is generating an event.
Normally I register with
this.obj.testEvent += new oClass.LogHandler(handleIt);
The class oClass has a property containing an instance of another class.
public class oClass
public qClass qclassobj;
And qClass has a property containing an instance of pClass etc.
When I create an instance of oClass, the other classes are also created.
Is it possible to register recursively to all the events (which do have to same name and attributes) by passing a parameter via the constructor or something like that?
So that ever ytime the
testEvent is generated in one of the classes the
handleIt function is called.
I hope you understand my question, any help appreciated :)