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)
Syntax
'Declaration
Public Sub CopyTo ( _
array As IDisposable(), _
arrayIndex As Integer _
)
'Usage
Dim instance As CompositeDisposable
Dim array As IDisposable()
Dim arrayIndex As Integer
instance.CopyTo(array, arrayIndex)
public void CopyTo(
IDisposable[] array,
int arrayIndex
)
public:
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
)
Parameters
- array
Type: System.IDisposable[]
The array to copy the contained disposables to.
- arrayIndex
Type: System.Int32
The target index at which to copy the first disposable of the group.
Implements
ICollection<T>.CopyTo(T[], Int32)