Hi,
On Thu, 20 Oct 2005 03:41:36 -0400, Ragnvald Barth
<[EMAIL PROTECTED]> wrote:
>I have a method MyMethod(), and I want to provide an asynchronous
>alternative
use delegates ...
...on top of my head and with no csc.exe ...
private class WhatEver
{
...
delegate void AsyncDel(int x);
AsyncDel del = new AsyncDel(CallBackFunc);
public IAsyncResult BeginCallBackFunc( int x, AsyncCallBack cb, object
state)
{
del.BeginInvoice(x,cb,state);
}
public void EndCallBackFunc(IAsyncResult arResult)
{
del.EndInvoice(arResult);
}
public static CallBackFunc(int x)
{
do your logic with x...
}
}
hth @llan
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com