About to get the return value from a method called by a delegate

J

Jet Leung

Hi all,
I had made a method that will return a string type value. And I invoke this
method in a string type delegate .And how can I get the return value when
the method finish processing.
for example:
public string A()
{
...
return A_value;
}
public class C_A
{
delegate string delegate_A;
public C_A()
{
delegate_A D_A=new deleagate_A(A);
D_A.BeginInvoke(null,null);
}
}

Like this the method has a string type return value, and when I call it in a
delegate ,how can I get the return value from the method A?
 

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

Top