Skip to content

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, IEnumerable, IEnumerable, ICancelable, IDisposable

Constructors

NameSummary
.ctor

Properties

NameSummary
CountGets the number of elements contained in the ICollection.
IsReadOnlyGets a value indicating whether the ICollection is read-only.
IsDisposed

Methods

NameSummary
AddAdds an item to the ICollection.
RemoveRemoves the first occurrence of a specific object from the ICollection.
DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
ClearRemoves all items from the ICollection.
ContainsDetermines whether the ICollection contains a specific value.
CopyToCopies the elements of the ICollection to an Array, starting...
GetEnumeratorReturns an enumerator that iterates through the collection.
Inherited members