Hi, I have a question related to events (no, its not duplicate from my previous one). I am interested whether I can send an event to class without specifying direct method name. I cannot explain in english well, please look at the code:
class a
{
public event eventhandler TEST;
b _b=new b();
TEST+=b_.MethodA(); //this is not useful for me since I need to know the method name that will be used by class B. }
class b
{
MethodA();
}
I would need only to raise an event and let the class B owner (inside B class) to determine what method will be called. The only think I can think of is to pass the event or the class as an argument to class B constructor.