Targeting System 2.0.0
Plugin for multipurpose targeting and visual effects.
UniRx.RefCountDisposable Class Reference

Represents a disposable resource that only disposes its underlying disposable resource when all dependent disposable objects have been disposed. More...

Inheritance diagram for UniRx.RefCountDisposable:
UniRx.ICancelable

Public Member Functions

 RefCountDisposable (IDisposable disposable)
 Initializes a new instance of the T:System.Reactive.Disposables.RefCountDisposable class with the specified disposable. More...
 
IDisposable GetDisposable ()
 Returns a dependent disposable that when disposed decreases the refcount on the underlying disposable. More...
 
void Dispose ()
 Disposes the underlying disposable only when all dependent disposables have been disposed.
 

Properties

bool IsDisposed [get]
 Gets a value that indicates whether the object is disposed. More...
 
- Properties inherited from UniRx.ICancelable
bool IsDisposed [get]
 

Detailed Description

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

Constructor & Destructor Documentation

◆ RefCountDisposable()

UniRx.RefCountDisposable.RefCountDisposable ( IDisposable  disposable)

Initializes a new instance of the T:System.Reactive.Disposables.RefCountDisposable class with the specified disposable.

Parameters
disposableUnderlying disposable.
Exceptions
ArgumentNullExceptiondisposable is null.

Member Function Documentation

◆ GetDisposable()

IDisposable UniRx.RefCountDisposable.GetDisposable ( )

Returns a dependent disposable that when disposed decreases the refcount on the underlying disposable.

Returns
A dependent disposable contributing to the reference count that manages the underlying disposable's lifetime.

Property Documentation

◆ IsDisposed

bool UniRx.RefCountDisposable.IsDisposed
get

Gets a value that indicates whether the object is disposed.

Implements UniRx.ICancelable.


The documentation for this class was generated from the following file: