CompositeDisposable.CopyTo Method

Copies the disposables contained in the CompositeDisposable to an array, starting at a particular array index.

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


Public Sub CopyTo ( _
    array As IDisposable(), _
    arrayIndex As Integer _
Dim instance As CompositeDisposable
Dim array As IDisposable()
Dim arrayIndex As Integer

instance.CopyTo(array, arrayIndex)
public void CopyTo(
    IDisposable[] array,
    int arrayIndex
virtual void CopyTo(
    array<IDisposable^>^ array, 
    int arrayIndex
) sealed
abstract CopyTo : 
        array:IDisposable[] * 
        arrayIndex:int -> unit 
override CopyTo : 
        array:IDisposable[] * 
        arrayIndex:int -> unit 
public final function CopyTo(
    array : IDisposable[], 
    arrayIndex : int


  • arrayIndex
    Type: System.Int32
    The target index at which to copy the first disposable of the group.


ICollection<T>.CopyTo(T[], Int32)

See Also


CompositeDisposable Class

System.Reactive.Disposables Namespace