More specifically, is List(T)(IEnumerable(T)) thread-safe if the IEnumerable used to initialize the list is modified during the construction of the new list?
That has nothing to do with the List constructor being thread safe, it only depends on whether the IEnumerable is thread safe.
The constructor is not thread safe, but that is not a problem in this case. The constructor is not doing anything that compromises it's thread safety, it's the thread safety of the IEnumerable that may be a problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With