Why is there no class like ParameterizedThreadStart <T>?

A class ParameterizedThreadStartthat always takes an object as a parameter. Which, I suppose, was introduced in .Net 1.0 / 1.1

But after introducing generics, do I expect a class like ParameterizedThreadStart<T>that that still doesn't exist?

Missed? or is there any other reason?

+5
source share
1 answer

An easy workaround is to use lambdas / anonymous functions to capture local variables, and then use an unparameterized threadstart.

ThreadStart start = () => func(param1, param2)
+7
source

All Articles