CompositeDisposable class¶
Defined in
Namespace: System.Reactive.Disposables
Assembly: System.Reactive.dll
Full name: System.Reactive.Disposables.CompositeDisposable
Modifiers: public sealed
Summary¶
Inherited documentation
These docs were inherited from Object.
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
Applies to
net8.0, net8.0-windows10.0.19041, netstandard2.0
Class hierarchy
classDiagram
class CompositeDisposable
class ICollection~IDisposable~ {
<>
}
ICollection~IDisposable~ <|.. CompositeDisposable
class IEnumerable~IDisposable~ {
<>
}
IEnumerable~IDisposable~ <|.. CompositeDisposable
class IEnumerable {
<>
}
IEnumerable <|.. CompositeDisposable
class ICancelable {
<>
}
ICancelable <|.. CompositeDisposable
class IDisposable {
<>
}
IDisposable <|.. CompositeDisposable
Implements: ICollection
Constructors¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| Count | Gets the number of elements contained in the ICollection. |
| IsReadOnly | Gets a value indicating whether the ICollection is read-only. |
| IsDisposed |
Methods¶
| Name | Summary |
|---|---|
| Add | Adds an item to the ICollection. |
| Remove | Removes the first occurrence of a specific object from the ICollection. |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| Clear | Removes all items from the ICollection. |
| Contains | Determines whether the ICollection contains a specific value. |
| CopyTo | Copies the elements of the ICollection to an Array, starting... |
| GetEnumerator | Returns an enumerator that iterates through the collection. |