I am Developing an windows Application, oftentimes I need to clear the Textboxes whenever the user save the Record or click on clear button.
Currently i am using this code txtboxname.text=string.empty; for each textbox
So can it be possible to write a method that accept the n number of parameter
like reading the all the Textboxes in an array and using foreach we can clear them
the main requirement is to write a method which accept the n number of parameter
i.e The parameter size will be unknown.
If any body having idea about how to do this then please help me.
Thanks in Advance.
With the
paramskeyword.Here is an example: