reference assignment is atomic so why is Interlocked.Exchange(ref Object, Object) needed?
In my multithreaded asmx web service I had a class field _allData of my own type SystemData which consists of few List<T> and Dictionary<T> marked as volatile. The system data (_allData) i
问答
阅读(2)