I understand that using the ++ iterator inside Parallel.ForEach is not a good option, but now I have to use a counter inside a Parallel.ForEach loop, the counter is used to search for column names of a dynamic object at runtime. Any suggestion, what would be the best option ?. I read somewhere in StackOverflow that using "Blocked" is again a bad design inside Parallel.ForEach.
source
share