Check out example codes for "c# clear all textboxes". It will help you in understanding the concepts better.

Code Example 1

private void ClearTextBoxes()
 {
     Action<Control.ControlCollection> func = null;

     func = (controls) =>
         {
             foreach (Control control in controls)
                 if (control is TextBox)
                     (control as TextBox).Clear();
                 else
                     func(control.Controls);
         };

     func(Controls);
 }

Learn ReactJs, React Native from akashmittal.com