Click or drag to resize
DigitalRuneWeakCollectionT Class
Represents a collection of objects of type T using weak references.
Inheritance Hierarchy
SystemObject
  DigitalRune.CollectionsWeakCollectionT

Namespace: DigitalRune.Collections
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public sealed class WeakCollection<T> : ICollection<T>, 
	IEnumerable<T>, IEnumerable, ICollection
where T : class

Type Parameters

T
The type of the elements in the collection.

The WeakCollectionT type exposes the following members.

Constructors
  NameDescription
Public methodWeakCollectionT
Initializes a new instance of the WeakCollectionT class.
Top
Methods
  NameDescription
Public methodAdd
Adds an item to the WeakCollectionT.
Public methodAsReadOnly
Returns a read-only wrapper for the current collection.
Public methodClear
Removes all items from the WeakCollectionT.
Public methodContains
Determines whether the WeakCollectionT contains a specific value.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemove
Removes the first occurrence of a specific object from the WeakCollectionT.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodAddRangeT (Defined by CollectionHelper.)
Public Extension MethodDoT(ActionT)Overloaded.
Performs the given action on each element in a sequence when it is enumerated.
(Defined by LinqHelper.)
Public Extension MethodDoT(ActionT, Int32)Overloaded.
Performs the given action on each element (incorporating its index) in a sequence when it is enumerated.
(Defined by LinqHelper.)
Public Extension MethodForEachT(ActionT)Overloaded.
Immediately performs the given action on each element in a sequence.
(Defined by LinqHelper.)
Public Extension MethodForEachT(ActionT, Int32)Overloaded.
Immediately performs the given action on each element (incorporating its index) in a sequence.
(Defined by LinqHelper.)
Public Extension MethodIndexOfT
Returns the index of the first element in a sequence that satisfies the specified condition.
(Defined by LinqHelper.)
Top
Properties
  NameDescription
Public propertyCount
Gets the number of items contained in the WeakCollectionT.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodICollectionTCopyTo
Copies the elements of the WeakCollectionT to an Array, starting at a particular Array index.
Explicit interface implementationPrivate methodICollectionCopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
Explicit interface implementationPrivate methodIEnumerableTGetEnumerator
Returns an enumerator that iterates through the collection.
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through a collection.
Explicit interface implementationPrivate propertyICollectionTIsReadOnly
Gets a value indicating whether the collection is read only. Always returns .
Explicit interface implementationPrivate propertyICollectionIsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
Explicit interface implementationPrivate propertyICollectionSyncRoot
Gets an object that can be used to synchronize access to the ICollection.
Top
See Also