public void Clear()Public Sub Clearpublic:
virtual void Clear() sealedabstract Clear : unit -> unit
override Clear : unit -> unit The Count property is set to 0, and references to other objects from elements of the collection are also released.
This method is an O(1) operation.