Dictionary<TKey, TValue>.Clear Method
Removes all keys and values from the Dictionary<TKey, TValue>.
Assembly: mscorlib (in mscorlib.dll)
The Count property is set to 0, and references to other objects from elements of the collection are also released. The capacity remains unchanged.
This method is an O(n) operation, where n is the capacity of the dictionary.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.