public void Clear() { if (_dictionary != null) { _dictionary.Clear(); } #if HAVE_READ_ONLY_COLLECTIONS else if (_readOnlyDictionary != null) { throw new NotSupportedException(); } #endif else { GenericDictionary.Clear(); } }