Removes all elements from the System.Collections.ObjectModel.KeyedCollection`2.
If there is a lookup dictionary, this method clears it but does not delete it.
If the number of elements has exceeded the dictionary creation threshold and the System.Collections.ObjectModel.KeyedCollection`2 is using a lookup dictionary, it will continue to use a lookup dictionary even though the number of elements is again under the threshold.
This method is an O(n) operation, where n is Collection`1.Count.
Override this method to provide customized behavior for the Collection`1.Clear method, inherited from the System.Collections.ObjectModel.Collection`1 generic class.
Call the base class implementation of this method to clear the underlying collection and to clear the lookup dictionary.