Can I send a parameter by reference in using waitcallback?

Hi,

I use waitcallback which is defined:

public delegate void WaitCallBack(Object o);

to callback a methed which is defined:

public void method(ref Object o);

The error occurs when compiling.

Can I use waitcallback to delegate a method in which the parameter
is sent by reference

Thanks,

Derek


Answer this question

Can I send a parameter by reference in using waitcallback?

  • MorningStar

    No you can't, the signatures must match.



  • ArchMcFry

    I see.
    I write a delegate object to substitute for waitcallback
    which meets my requirement.
    Thanks.

  • Can I send a parameter by reference in using waitcallback?