I’ve been searching everywhere and I need a solution that would let me add 200-300 jobs with a certain function THAT ACCEPTS parameters. I know about delegate and object as single parameter but I was hoping for something that would allow to queue the tasks each with different paramentars instead of object parametar only.
Any help would be greatly appreciated.
You can do something like this:
Another option is to make
MyMethodaccept a parameter of typeObject, and use the second overload ofQueueUserWorkItem: