The htmlnode is not thread safe.

Aug 1, 2010 at 3:55 AM
Edited Aug 1, 2010 at 4:04 AM

some times, one result will be missing when we update two htmlnodes in two parallel threads.


Parallel.ForEach(HtmlNodes,node=> node.SetAttributeValue("value","some text"));

if you want to see more detail code,you can get test code from