DataStax C# Driver for Apache Cassandra (.Net 4.5.2)
I think this is an invalid method
private static readonly Dictionary<TKey, TValue> Empty = new Dictionary<TKey, TValue>(); private volatile Dictionary<TKey, TValue> _map; public CopyOnWriteDictionary() { //Start with an instance without nodes _map = Empty; }
SO, _map and Empty is same object
public void Clear() { _map = Empty; }
(_map = Empty ) Can't Clear Dictionary, They are same object...