Table of Contents

Method CopyTo

Namespace
MaaFramework.Binding.Buffers
Assembly
MaaFramework.Binding.dll

CopyTo(IMaaListBuffer<T>)

Copies all values of the current buffer to the specified buffer.

public bool CopyTo(IMaaListBuffer<T> buffer)

Parameters

buffer IMaaListBuffer<T>

The buffer that is the destination of values copied from the current buffer.

Returns

bool

true if the operation was executed successfully; otherwise, false.

Exceptions

NotSupportedException

The MaaFramework.Binding.Buffers.IMaaBuffer`1 is read-only.

CopyTo(T[], int)

Copies the elements of the System.Collections.Generic.ICollection`1 to an System.Array, starting at a particular System.Array index.

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

Parameters

array T[]

The one-dimensional System.Array that is the destination of the elements copied from System.Collections.Generic.ICollection`1. The System.Array must have zero-based indexing.

arrayIndex int

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

Exceptions

ArgumentNullException

array is null.

ArgumentOutOfRangeException

arrayIndex is less than 0.

ArgumentException

The number of elements in the source System.Collections.Generic.ICollection`1 is greater than the available space from arrayIndex to the end of the destination array.