0

I encountered this for the first time a few days ago when doing research about starting threads with parameters.

The answer which worked ivolved writing something like this:

Thread[i] thread = new Thread(new ThreadStart(()=>myMethod(myArg)));

This worked brilliantly, however, I have no idea what it is called, what the ()=>Method syntax does or how/why it works.

If anyone could explain this to me I would be grateful!

Persistence
  • 3,136
  • 3
  • 27
  • 66

0 Answers0