MulticastDelegate return value

  • Thread starter Thread starter Guest
  • Start date Start date
SW Prathap said:
how to capture return value of MulticastDelegate.

delegate int Handler();
//...
public event Handler Callback;
//...
foreach (Handler h in Callback.GetInvocationList())
{
int result = h();
//...
}
 
i tried what you said, but i am getting the return value of the last call only.
( i am binding the delegate with three methods , i want the return value of
all the three)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top