stupid question :$
-
f_n_d wrote: how do u terminate a void function? like break... just use return; public void SomeMethod() { //do something if(isReasonToTerminateMethod) { return; //terminate the method, no code after this line will be executed } //do something } "We contend that for a nation to try to tax itself into prosperity is like a man standing in a bucket and trying to lift himself up by the handle." — Winston Churchill
-
f_n_d wrote: how do u terminate a void function? like break... just use return; public void SomeMethod() { //do something if(isReasonToTerminateMethod) { return; //terminate the method, no code after this line will be executed } //do something } "We contend that for a nation to try to tax itself into prosperity is like a man standing in a bucket and trying to lift himself up by the handle." — Winston Churchill