During my CLR/BCL/C# 4.0 talk, a few people asked me questions for which I didn't have the answer. I have now researched these questions and have the answers.
Question #1: Are the new concurrent collection classes in .NET 4.0 serializable?
Answer: Yes, ConcurrentStack, ConcurrentQueue, ConcurrentBag, and ConcurrentDictionary are all serializable. However, the BlockingCollection class (which can wrap any of these except for ConcurrentDictionary) is not serializable.
Question #2: How d...
Published on August 21, 2009 15:30