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!

ScottishTapWater
  • 3,656
  • 4
  • 38
  • 81

0 Answers0