HashSet(Of T).Clear Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Removes all elements from a HashSet(Of T) object.
Assembly: System.Core (in System.Core.dll)
Count is set to zero and references to other objects from elements of the collection are also released. The capacity remains unchanged until a call to TrimExcess is made.
This method is an O(n) operation, where n is Count.
Show: