I have a ConcurrentDictionary object that I would like to set to a Dictionary object.
Casting between them is not allowed. So how do I do it?
ConcurrentDictionary<int, string> cd = new ConcurrentDictionary<int, string>(); Dictionary<int,string> d = cd.ToDictionary(pair => pair.Key, pair => pair.Value);