By “how does” I mean “by what mechanism” not “to what effect”. Control doesn’t return to the calling method after you call Server.Transfer(“…”);. At the language runtime level, how does this happen? Does it throw an exception or trigger something that aborts the thread? I’m just curious. What are other examples of this pattern (calling a method to terminate execution)?
Share
It eventually calls
Endwhich throws aThreadAbortExceptionthat terminates the current thread of execution. See the documentation here