Is it safe to Add child elements to an XElement via its ADD method in a parallel way (as in a parallel foreach)?
Thanks!
From the documentation:
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
In other words, no, the add
method is not thread safe.
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