WeakReferenceCollection<(Of <(<'T>)>)> Methods

The WeakReferenceCollection<(Of <(<'T>)>)> type exposes the following members.

Methods


  Name Description
Public method Add
Adds a weak reference to the indicated item
Public method AddRange
Adds a list of values to this collection
Public method CleanUp
Removes the dead references from the collection
Public method Clear
Removes all items from the collection
Public method Contains
Returns true if the item is found in the collection
Public method CopyTo
Copies a snapshot of the collection to an array.
Public method Equals(System.Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetEnumerator
Returns an enumerator containing references that were live at the time this is called.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Remove
Removes the indicated item from the array
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)