CompositeDisposable
public sealed class CompositeDisposable : ICollection<IDisposable>, IEnumerable<IDisposable>, IEnumerable, ICancelable, IDisposable
Represents a group of disposable resources that are disposed together.
Gets the number of disposables contained in the CompositeDisposable.
Gets a value that indicates whether the object is disposed.
Always returns false.
public CompositeDisposable()
Initializes a new instance of the CompositeDisposable class with no disposables contained by it initially.
Initializes a new instance of the CompositeDisposable class with the specified number of disposables.
Initializes a new instance of the CompositeDisposable class from a group of disposables.
Initializes a new instance of the CompositeDisposable class from a group of disposables.
Adds a disposable to the CompositeDisposable or disposes the disposable if the CompositeDisposable is disposed.
Removes and disposes all disposables from the CompositeDisposable, but does not dispose the CompositeDisposable.
Determines whether the CompositeDisposable contains a specific disposable.
Copies the disposables contained in the CompositeDisposable to an array, starting at a particular array index.
Disposes all disposables in the group and removes them from the group.
Returns an enumerator that iterates through the CompositeDisposable.
Removes and disposes the first occurrence of a disposable from the CompositeDisposable.