Microsoft.CodeAnalysis.SyntaxNodeOrTokenList.CopyTo C# (CSharp) Method

CopyTo() private method

Copies a given count of elements into the given array at specified offsets.
private CopyTo ( int offset, Array array, int arrayOffset, int count ) : void
offset int The offset to start copying from.
array Array The array to copy the elements into.
arrayOffset int The array offset to start writing to.
count int The count of elements to copy.
return void
        internal void CopyTo(int offset, GreenNode[] array, int arrayOffset, int count)
        {
            for (int i = 0; i < count; i++)
            {
                array[arrayOffset + i] = this[i + offset].UnderlyingNode;
            }
        }