小编kev*_*vin的帖子

为什么在 ParallelLoopState 类中看不到 CurrentIteration

当我调试时Parallel.ForEach,我可以发现有字段CurrentIteration,但我找不到它ParallelLoopState

截图1

截图2

如何获取CurrentIteration的值?

.net c# task-parallel-library parallel.foreach

2
推荐指数
1
解决办法
56
查看次数