WeakListT Class

Creates a list of items that will be weak referenced. This list is thread-safe and allows enumeration while adding and removing from the list.

Definition

Namespace: SnapDB.Collections
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public class WeakList<T> : IEnumerable<T>, 
	IEnumerable
where T : class
Inheritance
Object    WeakListT
Implements
IEnumerableT, IEnumerable

Type Parameters

T
List type.

Constructors

WeakListT Creates a WeakListT

Methods

Add Adds the item to the list. Method is thread safe.
Clear Clears all of the times in the list. Method is thread safe.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetEnumerator Returns an enumerator that iterates through the collection.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Remove Removes all occurrences of the item from the list. Method is thread-safe.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also