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
"!"of"asd123B!"), and implement rollover ("B+"becomes"Ca"). That's doable, but I hope you don't expect us to write that method for you.String.Joinmethod? msdn.microsoft.com/en-us/library/57a79xd0(v=vs.110).aspxincrese_me, one could just use the Join method on each array to add into the increase_me assuming a block transaction is desired. If there is repetition of doing each string one by one then a loop is likely to be required unless one wants to write some really ugly recursive function to pass in the ever shrinking array to add the values across which would be another route one could take.