Table of Contents

Class DisposableMixins

Namespace
System.Reactive.Disposables
Assembly
ReactiveUI.dll

Extension methods associated with the IDisposable interface.

public static class DisposableMixins : Object
Inheritance
DisposableMixins

Methods

DisposeWith<T>(T, CompositeDisposable)

Ensures the provided disposable is disposed with the specified System.Reactive.Disposables.CompositeDisposable.

public static T DisposeWith<T>(this T item, CompositeDisposable compositeDisposable) where T : IDisposable

Parameters

item T

The disposable we are going to want to be disposed by the CompositeDisposable.

compositeDisposable CompositeDisposable

The System.Reactive.Disposables.CompositeDisposable to which item will be added.

Returns

T

The disposable.

Type Parameters

T

The type of the disposable.