Can anyone explain the below code, especially this line: starter += () => {
. I'm not sure how it functions and how the whole code works.
private void RunNetworkCheckThread()
{
ThreadStart starter = CheckNetwork;
starter += () =>
{
if (!_withNetwork)
{
RunNetworkCheckThread();
}
else
{
StartDrive();
}
};
threadNetwork = new Thread(starter) { IsBackground = true };
threadNetwork.Start();
}