Click or drag to resize

WeakReferenceSetT Class

A simple set of weak references.
Inheritance Hierarchy
SystemObject
  TomsToolbox.EssentialsWeakReferenceSetT

Namespace:  TomsToolbox.Essentials
Assembly:  TomsToolbox.Essentials (in TomsToolbox.Essentials.dll)
Syntax
public class WeakReferenceSet<T> : IEnumerable<T>, 
	IEnumerable
where T : class

Type Parameters

T
The type of the referenced objects.

The WeakReferenceSetT type exposes the following members.

Constructors
  NameDescription
Public methodWeakReferenceSetT
Initializes a new instance of the WeakReferenceSetT class
Top
Methods
  NameDescription
Public methodAdd
Adds the specified element to the set.
Public methodGetEnumerator
Returns an enumerator that iterates through the alive items of the collection.
Top
Extension Methods
  NameDescription
Public Extension MethodContainsAnyT(T)Overloaded.
Shortcut to test if any of the given items are contained in the specified object.
(Defined by CollectionExtensions.)
Public Extension MethodContainsAnyT(IEqualityComparerT, T)Overloaded.
Shortcut to test if any of the given items are contained in the specified object.
(Defined by CollectionExtensions.)
Public Extension MethodExceptNullItemsT
Filters a sequence of values based on their nullness.
(Defined by NullableExtensions.)
Public Extension MethodFindIndexT
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire IEnumerableT.
(Defined by CollectionExtensions.)
Public Extension MethodForEachT(ActionT)Overloaded.
Performs the specified action on each element of the collection.
(Defined by CollectionExtensions.)
Public Extension MethodForEachT(ActionT, Int32)Overloaded.
Performs the specified action on each element of the collection, providing also the index of the item.
(Defined by CollectionExtensions.)
Public Extension MethodIndexOfT(T)Overloaded.
Searches for the specified object and returns the zero-based index of the first occurrence within all items.
(Defined by CollectionExtensions.)
Public Extension MethodIndexOfT(T, IEqualityComparerT)Overloaded.
Searches for the specified object and returns the zero-based index of the first occurrence within all items.
(Defined by CollectionExtensions.)
Public Extension MethodObservableCastTTarget
Returns an observable collection of objects of type TTarget that mirrors the source collection.
(Defined by ObservableExtensions.)
Public Extension MethodSafeCastT
Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions.)
Top
See Also