i have a function in try catch and final block i know that function will always use finally block of code but here it should add character i no want to use while loop
string increse_me ;
public void brut()
{
string[] small = new string[] { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z" };
string[] cap = new string [] {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};
string[] num = new string[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"};
string[] spcl = new string[] { "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "`", ">", "<", "+" };
if( textbox1.Text == increase_me)
{
messagebox.show("matched")
}
catch (exception ex)
{
}
finally
{
brut();
//here i have to call function again with increase letter as start from "a"it add next to it
}
}
Now how to make a function that use string declared increase_me for the first time and also increase its value when finally fails from second arrray and so on to 26 max digit