I am looking at the BackgroundWorker.ReportProgress method. It can take 1 param (int) or two params (int, object).
If I want to assign the ReportProgress like this:
var ReportProgressMethod = backgroundWorker.ReportProgress;
I get an error saying that there is an ambiguous reference because (of course) the method can take to sets of parameters.
How can I change the above statement to say I want to use the int, object
version of the method.
(The idea behind this is that I want to pass ReportProgressMethod as a parameter to a method.)