<PackageReference Include="System.Reactive" Version="4.2.0-preview.566" />

StableCompositeDisposable

Represents a group of disposable resources that are disposed together.
public abstract bool IsDisposed { get; }

Gets a value that indicates whether the object is disposed.

public static ICancelable Create(IDisposable disposable1, IDisposable disposable2)

Creates a new group containing two disposable resources that are disposed together.

public static ICancelable Create(IDisposable[] disposables)

Creates a new group of disposable resources that are disposed together.

public static ICancelable Create(IEnumerable<IDisposable> disposables)

Creates a new group of disposable resources that are disposed together.

public abstract void Dispose()

Disposes all disposables in the group.