When i call a async function from third party library then i found that the function need to pass the callback.
the function is
Library.getResult(object options, Action<library.libresult<dataCollection>> callback
can someone tell me how i can pass callback to this function in silverlight.
thanks
You use a delegate for method that accepts the result. You can for example use a lambda expression to create that:
You can also declare a named method:
Then just use its name in the call, which will automatically create a delegate for it: