When to use which for?

前端 未结 7 973
慢半拍i
慢半拍i 2021-01-05 14:48

EDIT Additional options and a slightly extended question below.

Consider this contrived and abstract example of a class body. It demonstrates four different w

7条回答
  •  情歌与酒
    2021-01-05 14:56

    you missed:

    Parallel.ForEach(someList, o => o.someAction())
    Parallel.For(0, someList.Length, i => someList[i].someAction())
    

提交回复
热议问题