I need help with this
ParallelOptions parallelOption = new ParallelOptions()
{
MaxDegreeOfParallelism = 1000
};
Parallel.ForEach<string>(strs, parallelOption, (string a0, ParallelLoopState a1, long a2)
=> new VB$AnonymousDelegate_0<string, ParallelLoopState, long, object>((string url, ParallelLoopState i, long j)
=> {
VB$AnonymousDelegate_0< is giving me an error
You're using a lambda in a place where the compiler should be able to infer types.
So, you should be able to do
without any other work. The type of
swill be inferred from the type ofstrs, and the other two types will be inferred by overload resolution finding theParallel.ForEachcall.Related link