About the Task.StartNew(Action<Object>, Object) method
问题 I'm learning the TPL on this page, and one code block confuses me a lot. I was reading this page: Task Parallelism (Task Parallel Library) in one section, it said that the following code is the right solution because a lambda in a loop can't get the value as it mutates after each iteration, but the final value. So you should wrap the "i" in a CustomData object. The code is below: class CustomData { public long CreationTime; public int Name; public int ThreadNum; } public class Example {