System.Runtime.CompilerServices.ReadOnlyCollectionBuilder.CopyTo C# (CSharp) Méthode

CopyTo() public méthode

Copies the elements of the ReadOnlyCollectionBuilder{T} to an Array, starting at particular Array index.
public CopyTo ( Array array, int arrayIndex ) : void
array Array The one-dimensional that is the destination of the elements copied from .
arrayIndex int The zero-based index in array at which copying begins.
Résultat void
        public void CopyTo(T[] array, int arrayIndex)
        {
            Array.Copy(_items, 0, array, arrayIndex, _size);
        }