EntityCollection<TEntity>.CopyTo Method (TEntity[], Int32)

 

Copies all the contents of the collection to an array, starting at the specified index of the target array.

Namespace:   System.Data.Objects.DataClasses
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public void CopyTo(
	TEntity[] array,
	int arrayIndex
)

Parameters

array
Type: TEntity[]

The array to copy to.

arrayIndex
Type: System.Int32

The zero-based index in the array at which copying begins.

.NET Framework
Available since 3.5
Return to top
Show: