Skip to content

SerialDisposable class

Attributes: [EditorBrowsable(EditorBrowsableState.1)]

Defined in

Namespace: ReactiveUI.Binding.Observables Assembly: ReactiveUI.Binding.dll Full name: ReactiveUI.Binding.Observables.SerialDisposable Modifiers: public sealed

Summary

View source

A thread-safe serial disposable that disposes the previous inner disposable when a new one is assigned. Lightweight replacement for System.Reactive.Disposables.SerialDisposable.

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Class hierarchy
classDiagram
class SerialDisposable
class IDisposable {
    <>
}
IDisposable <|.. SerialDisposable

Implements: IDisposable

Constructors

NameSummary
.ctor

Properties

NameSummary
DisposableGets or sets the inner disposable. Setting a new value disposes the previous one. If the serial disposable itself has been disposed, the new value is disposed immediately.

Methods

NameSummary
Dispose
Inherited members