In ASP.net Visual Basic there is code to exit the subroutine:
Exit Sub
What code does the same action in C#?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Feb 25, 2014, 11:23 PM
hi,
Agree with vulpes.
Return key word used for exit from any function or method.
void MyFunc()
{
if(1 == 1)
{
return;
}
else
{
}
}
hope this will help you.
VulpesPosted Feb 25, 2014, 4:43 PM