SyntaxFix
Write A Post
Hire A Developer
Questions
For collections that do not support ForEach you can use static ForEach method in Parallel class:
ForEach
Parallel
var options = new ParallelOptions() { MaxDegreeOfParallelism = 1 }; Parallel.ForEach(_your_collection_, options, x => x._Your_Method_());