Leaving a Method from a Class...

  • Thread starter Thread starter Kerem Gümrükcü
  • Start date Start date
K

Kerem Gümrükcü

Hi,

how can i leave a method inside a class like this method, without
executing any further code...

example:

the method signature is : private void AnyMethod();


Something like that:

private void AnyMethod(){

if(CONDITION){
//Leave complete method
}

}


Thanks in advance...


Best Regards


Kerem Gümrükcü
 
Hi,

how can i leave a method inside a class like this method, without
executing any further code...

example:

the method signature is : private void AnyMethod();


Something like that:

private void AnyMethod(){

if(CONDITION){
//Leave complete method
}

}

Kerem

if (CONDITION)
{
return;
}
 
Hi,

oh this is soo painfull, and i am a experienced programmer...you wont belive
that!


Thanks

Kerem Gümrükcü
 
Sure we believe it. There are days that my mind gets so numb with this
stuff that I have to look at my driver's license to see what my name is.

DalePres
 
DalePres said:
Sure we believe it. There are days that my mind gets so numb with this
stuff that I have to look at my driver's license to see what my name is.

Heh... you copying me! :)
 
Back
Top