Search Results for

    Show / Hide Table of Contents

    Class MultipleAssignmentDisposable

    Represents a disposable resource whose underlying disposable resource can be swapped for another disposable resource.

    Inheritance
    Object
    MultipleAssignmentDisposable
    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 MultipleAssignmentDisposable : ICancelable, IDisposable

    Constructors

    | Improve this Doc View Source

    MultipleAssignmentDisposable()

    Initializes a new instance of the MultipleAssignmentDisposable class with no current underlying disposable.

    Declaration
    public MultipleAssignmentDisposable()

    Properties

    | Improve this Doc View Source

    Disposable

    Gets or sets the underlying disposable. After disposal, the result of getting this property is undefined.

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

    If the MutableDisposable has already been disposed, assignment to this property causes immediate disposal of the given 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