using System.Reactive.Disposables; namespace PLib.Desktop.ViewModels; internal static class DisposableExtensions { /// /// Parks a subscription in the owner's bag so it dies with the owner. Spelled out here /// rather than pulled from an Rx extension namespace, because more than one library in /// this project ships a DisposeWith and importing either invites ambiguity. /// public static void AddTo(this IDisposable disposable, CompositeDisposable subscriptions) => subscriptions.Add(disposable); }