SyntaxFix
Write A Post
Hire A Developer
Questions
Either return; from the method early, or throw an exception.
return;
throw
There is no other way to prevent further code from being executed short of exiting the process completely.