<PackageReference Include="System.Reactive" Version="6.1.0" />

System.Reactive.Disposables.Fluent.DisposableExtensions

public static class DisposableExtensions
Extension methods associated with the IDisposable interface.
namespace System.Reactive.Disposables.Fluent { public static class DisposableExtensions { public static T DisposeWith<[System.Runtime.CompilerServices.Nullable(0)] T>(this T item, CompositeDisposable compositeDisposable) where T : IDisposable; } }