The class ParameterizedThreadStart
, always takes object as parameter. Which I suppose was introduced in .Net 1.0/1.1
But after generics was introduced, I am expecting a class like ParameterizedThreadStart<T>
, which is still not there?
Was it missed? or Is there any other reason?
The easy workaround is to use lambdas/anonymous functions to capture local variables and then use the unparameterized threadstart.
ThreadStart start = () => func(param1, param2)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With