c# - Using Thread with Parameter as object -


how start thread object parameter in c#.

i wanted pass object parameter thread function.

to pass parameter thread use parametrizedthreadstart:

thread thread = new thread(new parametrizedthreadstart(func)); thread.start(obj); 

the parameterizedthreadstart delegate , thread.start(object) method overload make easy to pass data thread procedure.


Comments

Popular posts from this blog

json - Zend error Connection -

javascript - Trigger mouseenter when an animated element touches mouse -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -