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?
More specifically, is List(T)(IEnumerable(T)) thread-safe if the IEnumerable used to initialize the list is
Share
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.