lambda expression as a parameter c# : I have a collection which I am looping using Parallel foreach. I would like to check each single item in the collection before I pass it on to the loop. I was trying to do something like this, but it gives an error.
Any thoughts or suggestions?

    Parallel.ForEach(testCollection, (perform a check on each item in the collection) => DoSomething with the checked item)

Thanks.