SerialDisposable Class
Represents a disposable whose underlying disposable can be swapped for another disposable which causes the previous underlying disposable to be disposed.
Inheritance Hierarchy
System.Object
System.Reactive.Disposables.SerialDisposable
Namespace: System.Reactive.Disposables
Assembly: System.Reactive (in System.Reactive.dll)
Syntax
'Declaration
Public Class SerialDisposable _
Implements IDisposable
'Usage
Dim instance As SerialDisposable
public class SerialDisposable : IDisposable
public ref class SerialDisposable : IDisposable
type SerialDisposable =
class
interface IDisposable
end
public class SerialDisposable implements IDisposable
The SerialDisposable type exposes the following members.
Constructors
NameDescriptionSerialDisposableInitializes a new instance of the SerialDisposable class.Top
Properties
NameDescriptionDisposableGets or sets the underlying disposable.
IsDisposedGets a value indicating whether the object is disposed.Top
Methods
NameDescriptionDisposeDisposes the underlying disposable as well as all future replacements.
Equals(Inherited from Object.)
Finalize(Inherited from Object.)
GetHashCode(Inherited from Object.)
GetType(Inherited from Object.)
MemberwiseClone(Inherited from Object.)
ToString(Inherited from Object.)Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
System.Reactive.Disposables Namespace
SerialDisposable Constructor
Initializes a new instance of the SerialDisposable class.
Namespace: System.Reactive.Disposables
Assembly: System.Reactive (in System.Reactive.dll)
Syntax
'Declaration
Public Sub New
'Usage
Dim instance As New SerialDisposable()
public SerialDisposable()
public:
SerialDisposable()
new : unit -> SerialDisposable
public function SerialDisposable()
Remarks
By default, the SerialDisposable will dispose the current value of the Disposable property before assigning a new value.
See Also
Reference
System.Reactive.Disposables Namespace
SerialDisposable Properties
Include Protected Members
Include Inherited Members
The SerialDisposable type exposes the following members.
Properties
NameDescriptionDisposableGets or sets the underlying disposable.
IsDisposedGets a value indicating whether the object is disposed.Top
See Also
Reference
System.Reactive.Disposables Namespace
SerialDisposable Methods
Include Protected Members
Include Inherited Members
The SerialDisposable type exposes the following members.
Methods
NameDescriptionDisposeDisposes the underlying disposable as well as all future replacements.
Equals(Inherited from Object.)
Finalize(Inherited from Object.)
GetHashCode(Inherited from Object.)
GetType(Inherited from Object.)
MemberwiseClone(Inherited from Object.)
ToString(Inherited from Object.)Top