In the code below, is there a way to instead of always subscribing the updateWorker_DoWork method, pass it a method like this
public void GetUpdates(SomeObje
If I didn't misunderstand you, you need lambda expressions to construct anonymous method.
updateWorker.DoWork += (sender,e)=> { //bla }
Now you needn't always to write a method and pass it to new DoWorkEventHandler(myMethod)
new DoWorkEventHandler(myMethod)