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) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
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 methodWeakReferenceSetTInitializes 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 Shortcut to test if any of the given items are contained in the specified object.
(Defined by CollectionExtensions)
Public Extension MethodContainsAnyT 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 Performs the specified action on each element of the collection.
(Defined by CollectionExtensions)
Public Extension MethodForEachT Performs the specified action on each element of the collection, providing also the index of the item.
(Defined by CollectionExtensions)
Public Extension MethodIndexOfT Searches for the specified object and returns the zero-based index of the first occurrence within all items.
(Defined by CollectionExtensions)
Public Extension MethodIndexOfT 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