/// <summary>
        /// The ForEach method.
        /// </summary>
        /// <example>
        /// This sample shows how to call the<see cref="ForEach"/> method.
        /// <code>
        /// class MainForm : Form
        /// {
        ///     void SetAllTexboxesReadOnly()
        ///     {
        ///         this.Controls.ForEach<TextBox>((tb) => tb.ReadOnly = true);
        ///     }
        /// }
        /// </code>
        /// </example>
        public static void ForEach <TControlType>(this Control.ControlCollection controls, Action <TControlType> action) where TControlType : Control
        {
            var selectedControls = controls.GetControlsByType <TControlType>();

            selectedControls.ForEach(action);
        }