private void Method1 () { //some code here Method2(var1,var2); } private void Method2 (string var1,string var2) { counter ++; if(counter < 3) { if(condition1 == condition2) { counter = 0; Method3(); return; } if(condition1 != condition2) { //go back to method1 and try again Method1(); } } }
Method1()
Method2(var1,var2);
return
Method2
Method1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)