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
Post a Comment