Comments
2 comments
-
Hi and thanks for your post!
Regarding this issue, I'm afraid that the code regeneration is not perfect and illegal names can be expected, especially when compiler-generated code is involved.These names were actually generated by the compiler itself and Reflector is just reconstructing the code based on the IL the compiler created.
If you're looking to recompile the code and find and any illegal names or compile errors, I'm afraid you'll have to manually edit the code to remove them. So sorry for any inconvenience this causes! Please let me know if you have any further questions at the moment. -
Parallel.ForEach(information, async assemblyFileInfo =>
Stephen Toub wrote a ForEachAsync method on his blog back in 2012 which would work better:
http://blogs.msdn.com/b/pfxteam/archive/2012/03/05/10278165.aspx
Alternatively, use TPL Dataflow:
https://msdn.microsoft.com/en-us/library/hh228603.aspx
Add comment
Please sign in to leave a comment.
To Note: I'm using .NET 4.5 / C# 5 / VB 11, there doesn't appear to be any difference changing to the latest version of the framework/compilers.