I'm aware that with .net 4.5 there is the await, async keywords that allows for easy calling of async methods. I 'm currently studying how to make async calls in C# 4.0. An example I want to is to make an async call where the datagrid is being databind.
If you could provide me some links I would really appreciate it.
Have a look at using Tasks, this was available in .Net 4 and should help you. A simple example might look like this:
public void MainFlow()
{
Task taskWork = Task.Factory.StartNew(new Action(DoWork));
//Do other work
//Then wait for thread finish
taskWork.Wait();
}
private void DoWork()
{
//Do work
}
For more, have a look here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With