Search Results for

    Show / Hide Table of Contents

    Class SerialDisposable

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

    Inheritance
    Object
    SerialDisposable
    Implements
    ICancelable
    IDisposable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: System.Reactive.Disposables
    Assembly: System.Reactive.Core.dll
    Syntax
    public sealed class SerialDisposable : ICancelable, IDisposable

    Constructors

    | Improve this Doc View Source

    SerialDisposable()

    Initializes a new instance of the SerialDisposable class.

    Declaration
    public SerialDisposable()

    Properties

    | Improve this Doc View Source

    Disposable

    Gets or sets the underlying disposable.

    Declaration
    public IDisposable Disposable { get; set; }
    Property Value
    Type Description
    IDisposable
    Remarks

    If the SerialDisposable has already been disposed, assignment to this property causes immediate disposal of the given disposable object. Assigning this property disposes the previous disposable object.

    | Improve this Doc View Source

    IsDisposed

    Gets a value that indicates whether the object is disposed.

    Declaration
    public bool IsDisposed { get; }
    Property Value
    Type Description
    Boolean

    Methods

    | Improve this Doc View Source

    Dispose()

    Disposes the underlying disposable as well as all future replacements.

    Declaration
    public void Dispose()

    Implements

    ICancelable
    System.IDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX