|
Hello
You have to use Return statement. The return statement terminates
execution of the method in which it appears and returns control to the calling
method.
void Foo()
{
return;
}
int Foo()
{
return 5;
}
|
- [Microsofts_C_Sharp] How to Exit function johnsmith2797480
- Re: [Microsofts_C_Sharp] How to Exit function Nuri YILMAZ
- Re: [Microsofts_C_Sharp] How to Exit function Mohamed Galal
