for each textbox csharp

Code Example - for each textbox csharp

                
                        foreach (Control x in this.Controls)
{
  if (x is TextBox)
  {
    ((TextBox)x).Text = String.Empty;
  }
}