packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/Common/ShellObjectCollection.cs
/// <summary>
/// Copies the ShellObjects in the collection to a ShellObject array.
/// </summary>
/// <param name="array">The destination to copy to.</param>
/// <param name="arrayIndex">The index into the array at which copying will commence.</param>
Copies the ShellObjects in the collection to a ShellObject array.
Copies the ShellObjects in the collection to a ShellObject array .
public void CopyTo(ShellObject[] array, int arrayIndex)
        {
            if (array == null) { throw new ArgumentNullException("array"); }
            if (array.Length < arrayIndex + content.Count)
            {
                throw new ArgumentException(LocalizedMessages.ShellObjectCollectionArrayTooSmall, "array");
            }
            for (int index = 0; index < content.Count; index++)
            {
                array[index + arrayIndex] = content[index];
            }
        }
public void CopyTo ( ShellObject [ ] array , int arrayIndex ) { if ( array == null ) { throw new ArgumentNullException ( " " ) ; } if ( array . Length < arrayIndex + content . Count ) { throw new ArgumentException ( LocalizedMessages . ShellObjectCollectionArrayTooSmall , " " ) ; } for ( int index = 0 ; index < content . Count ; index ++ ) { array [ index + arrayIndex ] = content [ index ] ; } }
Copies the ShellObjects in the collection to a ShellObject array.
Copies the ShellObjects in the collection to a ShellObject array .
array
ShellObject[]
The destination to copy to.
The destination to copy to .
arrayIndex
int
The index into the array at which copying will commence.
The index into the array at which copying will commence .