using System;
using ;
using ;
using ;
using ;
using ;
using ;
using ;
using ;
namespace CursorThread
{
public partial class Form1 : Form
{
public delegate int DoSomethingDelegate(int data);
public Form1()
{
InitializeComponent();
}
static int DoSomething(int data)
{
/// <sumary>
/// Do something in this method
/// </sumary>
(300);
return data++;
}
private void button1_Click(object sender, EventArgs e)
{
= ;
DoSomethingDelegate d = DoSomething;
IAsyncResult ar = (100,null, null);
while (true)
{
= ;
if((50, false))
{
= ;
break;
}
}
//Get the result
int result = (ar);
(());
}
}
}