I\'m gonna create a BackgroundWorker with an anonymous method. I\'ve written the following code :
BackgroundWorker bgw = new B
You just need to add parameters to the anonymous function:
bgw.DoWork += (sender, e) => { ... }
Or if you don't care about the parameters you can just:
bgw.DoWork += delegate { ... }