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¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [SerialDisposable](# class. |
Properties¶
| Name | Summary |
|---|---|
| IsDisposed | Gets a value that indicates whether the object is disposed. |
| Disposable | Gets or sets the underlying disposable. |
Methods¶
| Name | Summary |
|---|---|
| Dispose | Disposes the underlying disposable as well as all future replacements. |