VirtualCollectionTCopyTo Method
Copies the entire
VirtualCollectionT to a compatible one-dimensional
Array, starting at the specified
arrayIndex of the target
array.
Calls the overridable
GetItem method for each index between zero and
Count, excluding upper bound.
Namespace: KGySoft.Collections.ObjectModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public void CopyTo(
T[] array,
int arrayIndex
)
Public Sub CopyTo (
array As T(),
arrayIndex As Integer
)
public:
virtual void CopyTo(
array<T>^ array,
int arrayIndex
) sealed
abstract CopyTo :
array : 'T[] *
arrayIndex : int -> unit
override CopyTo :
array : 'T[] *
arrayIndex : int -> unit
- array T
- The one-dimensional Array that is the destination of the elements copied from VirtualCollectionT. The Array must have zero-based indexing.
- arrayIndex Int32
- The zero-based index in array at which copying begins.
ICollectionTCopyTo(T, Int32)