I\'m gonna create a BackgroundWorker with an anonymous method. I\'ve written the following code :
BackgroundWorker bgw = new B
If you specify a lambda, you must ensure it takes the same number of arguments:
bgw.DoWork += (s, e) => ...;
But if you're not using the arguments, you could just use an anonymous delegate without parameters:
bgw.DoWork += delegate { ... };