Is the following pseudocode thread-safe ?
IList dataList = SomeNhibernateRepository.GetData(); Parallel.For(..i..) { foreach(var item in dataLi
to make sure no one is gonna change yuor list you could access it through an IEnumerable
IEnumerable dataList = SomeNhibernateRepository.GetData(); Parallel.For(..i..) { foreach(var item in dataList) { DoSomething(item); } }