Export (0) Print
Expand All

RefCountDisposable Class

Represents a disposable that only disposes its underlying disposable when all dependent disposables have been disposed.

System.Object
  System.Reactive.Disposables.RefCountDisposable

Namespace:  System.Reactive.Disposables
Assembly:  System.Reactive (in System.Reactive.dll)

public sealed class RefCountDisposable : IDisposable

The RefCountDisposable type exposes the following members.

  NameDescription
Public methodRefCountDisposableInitializes a new instance of the RefCountDisposable class with the specified disposable.
Top

  NameDescription
Public propertyIsDisposedGets a value that indicates whether the object is disposed.
Top

  NameDescription
Public methodDisposeDisposes the underlying disposable only when all dependent disposables have been disposed.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetDisposableReturns a dependent disposable that when disposed decreases the refcount on the underlying disposable.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft