How Pass Parameter to ThreadStart in C#

There are two ways to accomplish it.

1. 
Thread thread = new Thread(() => download(parm1));
thread.Start();

2.
Thread thread = new Thread(new ParametrizedThreadStart(func1));
thread.Start(parm1);


Comments

Popular posts from this blog

SQL Interview Questions and Answers

Generic Interface and Factory Pattern in C#

How to get device info IMEI programmatically in xamarin android