C
Craig
I have some code
Is the finish statement the best to use if method is of the type void
private void btnSave_Click(object sender, System.EventArgs e)
{
//If something happens here exit code block
if((string)Session["RecordID"] == "0")
{
//Execute code here
}
else
{
Goto Finish: //Exit routine
}
//More code here
Finish:
{
}
}
Is the finish statement the best to use if method is of the type void
private void btnSave_Click(object sender, System.EventArgs e)
{
//If something happens here exit code block
if((string)Session["RecordID"] == "0")
{
//Execute code here
}
else
{
Goto Finish: //Exit routine
}
//More code here
Finish:
{
}
}