I am new to C# and .Net.
There is this code:
var loadInfoThread = new Thread(delegate() { try {..} catch(Exception e) {..}}); }
loadInfoThread.Start();
This launch new worker thread that run anonymous method? meaning that then variables inside the method will be cleared when thread finishes the job?
What the delegate() does exactly?
You can pass any method to
Threadconstuctor beside the anonymous method (delegate). The variables in anonymous method will be cleared in the same way with normal function.Thread without anonymous method.