Using
ParameterizedThreadStart
is bad, because it forces you into type case.
This is much better way of passing parameters into a thread and solving any similar problems — creating a thread wrapper which would automatically pass the instance of the class via "this".
Code sample is very simple:
How to pass ref parameter to the thread[
^]
—SA