ReactiveUI.Primitives.Disposables.MultipleDisposable
public class MultipleDisposable : IsDisposed, IDisposable, ICollection<IDisposable>, IEnumerable<IDisposable>, IEnumerable
A disposable pocket that contains a set of disposables and disposes them 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 MultipleDisposable()
Initializes a new instance of the MultipleDisposable class.
Initializes a new instance of the MultipleDisposable class.
Initializes a new instance of the MultipleDisposable class.
Initializes a new instance of the MultipleDisposable class from a group of disposables.
Creates a new group of disposable resources that are disposed together.
Adds a disposable to the group, or disposes it immediately when the group is disposed.
Removes and disposes every disposable currently held without disposing the group itself.
Determines whether the group currently holds the supplied disposable.
Copies the disposables currently held into array starting at arrayIndex.
Disposes every held disposable and marks the group disposed; repeated calls have no further effect.
Releases the held disposables in registration order, the two inline slots first, then the overflow entries.
Returns an enumerator over a snapshot of the disposables currently held.
Removes and disposes the requested disposable from the pocket.