ReactiveUI.Primitives.Disposables.Pocket
public sealed class Pocket : IsDisposed, IDisposable, ICollection<IDisposable>, IEnumerable<IDisposable>, IEnumerable
Primitives alias for a group of disposables that are disposed together.
Gets the number of held disposables, or zero after disposal.
Gets a value indicating whether the object is disposed.
Gets a value indicating whether the collection is read-only, which is always false.
public Pocket()
Initializes a new instance of the Pocket class.
Initializes a new instance of the Pocket class.
Initializes a new instance of the Pocket class.
Initializes a new instance of the Pocket class.
Adds a disposable to the pocket, or disposes it immediately when the pocket is disposed.
Removes and disposes every disposable currently held without disposing the pocket itself.
Determines whether the pocket currently holds the supplied disposable.
Copies the disposables currently held into array starting at arrayIndex.
Disposes every held disposable and marks the pocket disposed; repeated calls have no further effect.
Returns an enumerator over a snapshot of the disposables currently held.
Removes and disposes the requested disposable from the pocket.