CompositeDisposable Class

Represents a group of Disposables that are disposed together.

Namespace: SharpKit.Rx

Base Types

System.Object

Base Interfaces

System.IDisposable

Constructors

Name Description
CompositeDisposable() Constructs a CompositeDisposable from a group of disposables.
CompositeDisposable(IDisposable) Constructs a CompositeDisposable from a group of disposables.
CompositeDisposable(IDisposable, IDisposable) Constructs a CompositeDisposable from a group of disposables.
CompositeDisposable(IDisposable, IDisposable, IDisposable) Constructs a CompositeDisposable from a group of disposables.
CompositeDisposable(IDisposable, IDisposable, IDisposable, IDisposable) Constructs a CompositeDisposable from a group of disposables.

Methods

Name Description
Add(IDisposable) Adds a disposable to the CompositeDisposable or disposes the disposable if the CompositeDisposable is disposed.
Clear() Removes and disposes all disposables from the CompositeDisposable, but does not dispose the CompositeDisposable.
Dispose() Disposes all disposables in the group and removes them from the group.
GetCount() Gets the number of disposables contained in the CompositeDisposable.
Remove(IDisposable) Removes and disposes the first occurrence of a disposable from the CompositeDisposable.
© Copyright 2005-2011 SharpKit. All rights reserved.