Skip to content

SerialDisposable class

Defined in

Namespace: System.Reactive.Disposables Assembly: System.Reactive.dll Full name: System.Reactive.Disposables.SerialDisposable Modifiers: public sealed

Summary

        Represents a disposable resource whose underlying disposable resource can be replaced by another disposable resource, causing automatic disposal of the previous underlying disposable resource.
        

Applies to

netstandard2.0

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

Implements: ICancelable, IDisposable

Constructors

NameSummary
.ctorInitializes a new instance of the [SerialDisposable](# class.

Properties

NameSummary
IsDisposedGets a value that indicates whether the object is disposed.
DisposableGets or sets the underlying disposable.

Methods

NameSummary
DisposeDisposes the underlying disposable as well as all future replacements.
Inherited members