示例#1
0
 /// <summary>
 /// Copies the elements of the <c>ControlCollection</c> to a new array
 /// </summary>
 /// <param name="controlCollection">The control collection to copy from</param>
 /// <returns>A list containing all controls</returns>
 public static Control[] ToArray(this ControlCollection controlCollection)
 {
     return(controlCollection.ToList().ToArray());
 }