Equivalent to Exit Try

Jul 31 2007 1:34 AM

I want to do the following job

try
{
       if(......)
              Exit Try                         //this will do in VB but not in C#

        //do stuff
       if(............)
                 Exit Try

        //do stuff
}
catch()
{
}

I have tried using do{       }while(false); and using Switch - Case.
Is there any other way to do this.
Reply soon


Answers (4)