I'm trying to understand C# and am very confused by this block of code.
Thread thread = new Thread(new ThreadStart(() =>
{
Thread.Sleep(_rnd.Next(50, 200));
//do other stuff
}));
thread.Start();
I know a thread is being created and then started but I don't understand the => syntax in this case. From checking other posts on this site, which were hard to find regarding =>, I think it was to do with delegates or that something is being returned? Can anyone shed some light on this? Thanks.