osu.Framework/Graphics/Containers/Container.cs
/// <summary>
/// Copies the elements of the <see cref="Container{T}"/> to an Array, starting at a particular Array index.
/// </summary>
/// <param name="array">The Array into which all children should be copied.</param>
/// <param name="arrayIndex">The starting index in the Array.</param>
Copies the elements of the  to an Array, starting at a particular Array index.
Copies the elements of the to an Array starting at a particular Array index .
public void CopyTo(T[] array, int arrayIndex)
        {
            foreach (var c in Children)
                array[arrayIndex++] = c;
        }
public void CopyTo ( T [ ] array , int arrayIndex ) { foreach ( var c in Children ) array [ arrayIndex ++ ] = c ; }
Copies the elements of the  to an Array, starting at a particular Array index.
Copies the elements of the to an Array starting at a particular Array index .
array
T[]
The Array into which all children should be copied.
The Array into which all children should be copied .
arrayIndex
int
The starting index in the Array.
The starting index in the Array .