PostSharp//API Reference/Post­Sharp.​Aspects.​Internals/Arguments<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5>/Copy­To
Open sandboxFocus

Method CopyTo

CopyTo(Object[], Int32)

Copies all arguments values to the specified Array starting at the specified destination Array index.

Declaration
public override void CopyTo(object[] array, int index)
Parameters
Type Name Description
Object[] array

The array that is the destination of argument values copied from the current Arguments.

Int32 index

An integer that represents the index in array at which copying begins

Overrides
Arguments.CopyTo(Object[], Int32)
Exceptions
Type Condition
ArgumentNullException

array is null.

ArgumentOutOfRangeException

arrayIndex is less than 0.

ArgumentException

The number of elements in the source ICollection<T> is greater than the available space from arrayIndex to the end of the destination array.