Is the following pseudocode thread-safe ?
IList dataList = SomeNhibernateRepository.GetData(); Parallel.For(..i..) { foreach(var item in dataLi
It's fully thread-safe as long as DoSomething(item) doesn't modify dataList. Since you said it doesn't, then yes, that is thread-safe.
DoSomething(item)
dataList